mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 UnitOfWork 静态属性 DebugBeingUsed,用于生产环境监视正在使用中的事务;
This commit is contained in:
@ -172,8 +172,7 @@ namespace FreeSql
|
||||
DbContextExecCommand();
|
||||
//删除没有保存的数据
|
||||
var propValEach = GetItemValue(item, prop) as IEnumerable;
|
||||
_db.Orm.Select<object>().AsType(tref.RefEntityType).WhereDynamic(propValEach, true)
|
||||
.ToDelete().ExecuteAffrows();
|
||||
_db.Orm.Delete<object>().AsType(tref.RefEntityType).WhereDynamic(propValEach, true).ExecuteAffrows();
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
Reference in New Issue
Block a user