Interviews2 answers
When will you prefer to use Code First or DB First approach and why?
2 Answers
If you have existing database already or you want to build your database first than other parts of the application then DB First approach to be used.
If your prime focus is your domain classes and then create the database from your domain classes then Code first approach to be used. This ensures that you will have full control over code.
Varsha ParabPosted Mar 14, 2018, 1:42 AM EDT
if you want to have full control over schema then go with code first else DB first
Rajendra TaradalePosted Nov 21, 2017, 6:32 AM EST


