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