Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET

Create database from model using Entity Framework Core and ASP.NET Core

Category: Microsoft.NET
Comments (0)

While working with Entity Framework Core and ASP.NET Core you typically create EF Core model consisting of a custom DbContext and entity classes. If your database already exists, it can be mapped with the EF Core model. However, if the database exist already, you would want it to be created. Of course, you can create the database manually by looking at the EF Core model and creating tables accordingly. it be nice if the database gets created automatically for you based on the EF Core model your created? To that end this article discusses just that.


Sponsored Links

Read Next: How to Code Without Thinking?