Refers to https://learn.microsoft.com/en-us/aspnet/core/migration/50-to-60?view=aspnetcore-6.0&tabs=visual-studio (Migrate from ASP.NET Core 5.0 to 6.0), which suggests implementing a new streamlined minimal model for booting up the application.
Is your feature request related to a problem? Please describe.
The new .NET 6 minimal hosting model:
Applying migrations through EF Core 6.0 results in the application starting before migrations are applied. See https://stackoverflow.com/questions/70368401/why-does-dotnet-ef-migrations-add-start-my-application
Describe the solution you'd like
- Move from WebHost builder to WebApplication builder to bootstrap application
- Merge startup and program classes
Refers to https://learn.microsoft.com/en-us/aspnet/core/migration/50-to-60?view=aspnetcore-6.0&tabs=visual-studio (Migrate from ASP.NET Core 5.0 to 6.0), which suggests implementing a new streamlined minimal model for booting up the application.
Is your feature request related to a problem? Please describe.
The new .NET 6 minimal hosting model:
Applying migrations through EF Core 6.0 results in the application starting before migrations are applied. See https://stackoverflow.com/questions/70368401/why-does-dotnet-ef-migrations-add-start-my-application
Describe the solution you'd like