diff --git a/biome.json b/biome.json index a75fb757..f66365d9 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json", + "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json", "vcs": { "enabled": true, "clientKind": "git", diff --git a/framework/SimpleModule.Blazor/Components/InertiaPage.razor b/framework/SimpleModule.Blazor/Components/InertiaPage.razor index b3205f10..e9c06dd3 100644 --- a/framework/SimpleModule.Blazor/Components/InertiaPage.razor +++ b/framework/SimpleModule.Blazor/Components/InertiaPage.razor @@ -1,4 +1,5 @@ -
+ + @code { diff --git a/framework/SimpleModule.Hosting/SimpleModuleHostExtensions.cs b/framework/SimpleModule.Hosting/SimpleModuleHostExtensions.cs index 68cf5071..da0c70e4 100644 --- a/framework/SimpleModule.Hosting/SimpleModuleHostExtensions.cs +++ b/framework/SimpleModule.Hosting/SimpleModuleHostExtensions.cs @@ -121,22 +121,7 @@ public static async Task UseSimpleModuleInfrastructure(this WebApplication app) if (scope.ServiceProvider.GetService(info.DbContextType) is DbContext db) { - // Use MigrateAsync when migrations exist, EnsureCreated otherwise - // (projects scaffolded with sm new project have no migrations initially) - if ((await db.Database.GetPendingMigrationsAsync()).Any() - || (await db.Database.GetAppliedMigrationsAsync()).Any()) - { - await db.Database.MigrateAsync(); - } - else - { - var logger = scope.ServiceProvider.GetService{pkg.description}
by {pkg.authors}