Model-First

If we’re not familiar with the Visual Studio IDE design tools such as the XML-based DataSet Schema (XSD) and the Entity Designer Model XML visual interface (EDMX), the Model-First approach can be rather confusing. The key to understanding it is to acknowledge the fact that the word Model here is meant to define a visual diagram built with the design tools. That diagram will then be used by the Framework to autogenerate the Database SQL script and the Data Model source code files.

To summarize, we can say that going Model-First will mean "working on a visual EDMX diagram and letting Entity Framework create/update the rest accordingly":

Such an approach has the following benefits:

  • We will be able to create the Database schema ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.