Hi,
We are re-writing our web applications( at least 3) and unifying our databases into one.
Now the question is do we go Code first or Database first. We will be using MVC 5 and SQL 2014. Any Pros and Cons other than just the preference would be high appreciated
Thank you
Nirmala Thota

Ramesh PalaniappanRank #370 · 6.8K reputationPosted Sep 29, 2016, 4:36 AM EDT
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 28, 2016, 4:44 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Sep 28, 2016, 7:15 PM EDT
Lokesh KumarRank #4,352 · 349 reputationPosted Sep 28, 2016, 8:53 PM EDT
Kunal VaishyaRank #990 · 2K reputationPosted Sep 28, 2016, 10:22 PM EDT
Option 1 - Code first
>> You have to Create Models/Entities and DB will create based on your Models/Entities.
Option 2 - DB first
>> You can create Database first and then add it EF and use it according.
Both the Option is Good but I suggest OPtion 2(DB first) Not Option 1(Code first).
In Option 1(Code first) it is very difficult maintain database changes because you have to change in your Models/Entities.
Regards,
Kunal vaishya.
Sudeep Chourasia192 reputationPosted Sep 29, 2016, 5:52 AM EDT