|
|
@ -1223,13 +1223,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
/// <returns></returns>
|
|
|
|
private async Task<IActionResult> BeginTran<T>(List<T> p_list, List<VmiLog> logList) where T : SE_BASE, new() |
|
|
|
{ |
|
|
|
IServiceCollection Services = new ServiceCollection(); |
|
|
|
/* |
|
|
|
* 注册 |
|
|
|
*/ |
|
|
|
Services.GetConfiguration(); |
|
|
|
Services.GetRequiredService<IConfiguration>(); |
|
|
|
Services.GetRequiredService<ILoggerFactory>(); |
|
|
|
// IServiceCollection Services = new ServiceCollection();
|
|
|
|
// Services.GetConfiguration();
|
|
|
|
//Services.GetRequiredService<IConfiguration>();
|
|
|
|
//Services.GetRequiredService<ILoggerFactory>();
|
|
|
|
//var messageList = logList.Select(log => new VmiMessage { Message = JsonSerializer.Serialize(log) }).ToList();
|
|
|
|
var connectionString = this._serviceProvider.GetRequiredService<IConfiguration>().GetConnectionString("SettleAccountService"); |
|
|
|
var options = new DbContextOptionsBuilder<SettleAccountDbContext>().UseSqlServer(connectionString).Options; |
|
|
|