Controller necessary for creating database / Entity Framework

Dean Everhart 1,541 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).

Developer technologies .NET Entity Framework Core
Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.