- 优化 UnitOfWork 与 ForUpdate 事务开启逻辑;

This commit is contained in:
2881099
2022-12-08 15:49:18 +08:00
parent 09864eaa9f
commit 80cfa45f51
4 changed files with 17 additions and 4 deletions

View File

@ -487,6 +487,11 @@ namespace base_entity
BaseEntity.Initialization(fsql, () => _asyncUow.Value);
#endregion
using (var uow = fsql.CreateUnitOfWork())
{
uow.Orm.Select<User1>().ForUpdate().ToList();
}
var listaaaddd = new List<User1>();
for (int i = 0; i < 2; i++)
{