ABP8.1的数据迁移

 public override async Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context)
 {
     await context.ServiceProvider.GetRequiredService<UnifiedDbContext>().Database.MigrateAsync();
 }

 

posted @ 2024-09-19 22:14  韩梦芫  阅读(5)  评论(0编辑  收藏  举报