3

I am new in EF and trying to understand the differences in EF Code First and Database first model. What should be the best choice for starting a new MVC3 project?

tereško
  • 58,060
  • 25
  • 98
  • 150
  • I think the **code** first and **database** first should exactly describe the difference unless you didn't start programming this morning. [Here](http://stackoverflow.com/questions/5446316/ef-4-1-code-first-vs-model-database-first/5446587#5446587) you have something about differences between database / model / code first. – Ladislav Mrnka Oct 28 '11 at 17:47

2 Answers2

1

For the pros and cons of EF Code first and database first model, view following posts. It definitely helps you.

Code-first vs Model/Database-first

EF 4.1 Model & Database First Walkthrough

Using EF “Code First” with an Existing Database

Community
  • 1
  • 1
Mansoor Gee
  • 1,071
  • 8
  • 20
0

If you are starting a new project and do not have a current database then code first is the easiest way to get started.

If you are starting a new project but already have a database that you are building around you would then use Database first.

benjamin
  • 1,087
  • 7
  • 10