Sivakumar
Sivakumar

Reputation: 375

EF Code first and Database first

I'm going to start an new application with MVC Web API. Api should communicate with DB. Data base is not yet designed, but this DB will communicate with more then one application. So which way I have to choose.

Upvotes: 1

Views: 367

Answers (1)

Bassam Alugili
Bassam Alugili

Reputation: 17033

Code first is a good chooice for you, for the following reasons:

  • Code first is prefered by programmers
  • Good support in EF Core
  • more flexibility
  • You can use bounded context to communicate with other databases

Other info:

The image is copyied from: http://www.entityframeworktutorial.net/choosing-development-approach-with-entity-framework.aspx

decision tree which apporach

Upvotes: 3

Related Questions