Controller necessary for creating database / Entity Framework

Dean Everhart 846 Reputation points
2023-03-20T13:24:31.3933333+00:00

if I create a property set under models and list it in the context class and run a migration and database update the database is not created (as observed through MSSMS).

If I create a controller using entity framework in between creating a property set and the migration and database update, the database is created (as observed through MSSMS).

Am I correct in observing that a controller using entity framework has to be created in order for a database to be created through the migration and database update process?

(I thought perhaps a property set with the property set listed in the context would trigger the database being created).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
{count} votes