i like to know what is Entity Framework code first, db first and model first ?
discuss what does it means model first or code first?
when we should go for model first & code first?
looking for brief discussion. thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Mar 10, 2015, 4:40 AM
Tom MohanPosted Mar 9, 2015, 8:31 PM
Code First: In the Code First approach, you avoid working with visual model designer (EDMX) completely. You write your POCO classes first and then create database from these POCO classes.
Developers who follow the path of Domain-Driven Design (DDD) principles, prefer to begin by coding their domain classes first and then generating the database required to persist their data.
Model First: In the Model First approach, you create Entities, relationships, and inheritance hierarchies directly on the design surface of EDMX and then generates
If its useful, mark it as "Accepted Answer"