Reputation: 33
Can anyone explain the different approaches used in entity framework and which is better? Have gone through internet and found 3 approaches but still have a doubt which one to prefer
Upvotes: 3
Views: 2222
Reputation: 56
Database First is better than other approach. I think, you should prefer database first approach.
Upvotes: 2
Reputation: 56
We can use three type of entity framework approach as per project requirement.
Database First:
http://www.entityframeworktutorial.net/database-first-with-entity-framework.aspx
Code First:
http://www.entityframeworktutorial.net/code-first/what-is-code-first.aspx
Model First:
Upvotes: 2