ABP8.1的資料遷移

韩梦芫發表於2024-09-19
 public override async Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context)
 {
     await context.ServiceProvider.GetRequiredService<UnifiedDbContext>().Database.MigrateAsync();
 }

相關文章