Migrate the db at startup
This commit is contained in:
parent
4941f3bdef
commit
8bd1653a1e
2 changed files with 8 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ namespace Yavsc
|
|||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ namespace Yavsc
|
|||
.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.json", optional: true)
|
||||
.AddEnvironmentVariables()
|
||||
.Build();
|
||||
var app = builder.ConfigureWebAppServices().ConfigurePipeline();
|
||||
var app = await builder.ConfigureWebAppServices().ConfigurePipeline();
|
||||
app.UseSession();
|
||||
app.Run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue