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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tom MohanRank #912 · 2.3K reputationPosted Mar 9, 2015, 4:31 PM EDT
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"
Posted Mar 10, 2015, 12:40 AM EDT