fix #I8206M 打印方案增加数据源设置

This commit is contained in:
wintel
2023-09-17 18:15:22 +08:00
parent 0fe060899b
commit c5e735b2e8
3 changed files with 53 additions and 19 deletions

View File

@@ -60,10 +60,6 @@ namespace OpenAuth.App.Test
serviceCollection.AddDbContext<OpenAuthDBContext>();
var container = AutofacExt.InitForTest(serviceCollection);
_autofacServiceProvider = new AutofacServiceProvider(container);
AutofacContainerModule.ConfigServiceProvider(_autofacServiceProvider);
var dbtypes = config.GetSection("AppSetting:DbTypes").GetChildren()
.ToDictionary(x => x.Key, x => x.Value);
@@ -85,6 +81,10 @@ namespace OpenAuth.App.Test
});
return sqlSugar;
});
var container = AutofacExt.InitForTest(serviceCollection);
_autofacServiceProvider = new AutofacServiceProvider(container);
AutofacContainerModule.ConfigServiceProvider(_autofacServiceProvider);
}
/// <summary>