feat: 完善验证、注册开关

This commit is contained in:
橙子
2023-12-20 21:43:16 +08:00
parent 22d25fd67e
commit edcba7a35a
8 changed files with 1561 additions and 35 deletions

View File

@@ -102,14 +102,14 @@ namespace Yi.Framework.SqlSugarCore.Uow
//await Console.Out.WriteLineAsync("开始新的事务");
Console.WriteLine(dbContext.SqlSugarClient.ContextID);
// Console.WriteLine(dbContext.SqlSugarClient.ContextID);
await dbContext.SqlSugarClient.Ado.BeginTranAsync();
return dbContext;
}
else
{
// await Console.Out.WriteLineAsync("继续老的事务");
Console.WriteLine(activeTransaction.DbContext.SqlSugarClient);
// Console.WriteLine(activeTransaction.DbContext.SqlSugarClient);
await activeTransaction.DbContext.SqlSugarClient.Ado.BeginTranAsync();
return (TDbContext)activeTransaction.DbContext;
}