Controller necessary for creating database / Entity Framework

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

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,205 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,287 questions
{count} votes