|
|
@@ -42,6 +42,7 @@ using Volo.Abp.Modularity;
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
using Volo.Abp.Threading;
|
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
+using Bussiness.MongoDB;
|
|
|
|
|
|
namespace Business
|
|
|
{
|
|
|
@@ -51,6 +52,7 @@ namespace Business
|
|
|
typeof(BusinessHttpApiModule),
|
|
|
typeof(BusinessApplicationModule),
|
|
|
typeof(BusinessEntityFrameworkCoreModule),
|
|
|
+ typeof(BussinessMongoDbModule),
|
|
|
typeof(AbpAspNetCoreMultiTenancyModule),
|
|
|
typeof(AbpAspNetCoreSerilogModule)
|
|
|
)]
|
|
|
@@ -342,15 +344,15 @@ namespace Business
|
|
|
app.UseUnitOfWork();
|
|
|
app.UseConfiguredEndpoints();
|
|
|
app.UseQuartz();
|
|
|
- AsyncHelper.RunSync(async () =>
|
|
|
- {
|
|
|
- using (var scope = context.ServiceProvider.CreateScope())
|
|
|
- {
|
|
|
- await scope.ServiceProvider
|
|
|
- .GetRequiredService<IDataSeeder>()
|
|
|
- .SeedAsync();
|
|
|
- }
|
|
|
- });
|
|
|
+ //AsyncHelper.RunSync(async () =>
|
|
|
+ //{
|
|
|
+ // using (var scope = context.ServiceProvider.CreateScope())
|
|
|
+ // {
|
|
|
+ // await scope.ServiceProvider
|
|
|
+ // .GetRequiredService<IDataSeeder>()
|
|
|
+ // .SeedAsync();
|
|
|
+ // }
|
|
|
+ //});
|
|
|
}
|
|
|
}
|
|
|
}
|