mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 优化 UnitOfWork 与 ForUpdate 事务开启逻辑;
This commit is contained in:
@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user