- 修复 UnitOfWorkManager + Repository.SaveMany 事务切换问题;

This commit is contained in:
2881099
2022-11-08 14:50:26 +08:00
parent 98a588ada9
commit 9073ed71a3
3 changed files with 25 additions and 2 deletions

View File

@ -16,6 +16,18 @@ namespace FreeSql
_repo = repo;
}
IUnitOfWork _uowPriv;
internal override IUnitOfWork _uow
{
get => _uowPriv;
set
{
_uowPriv = value;
foreach (var dbset in _dicDbSetObjects.Values) //配合 UnitOfWorkManager
dbset._uow = _uowPriv;
}
}
protected override ISelect<TEntity> OrmSelect(object dywhere)
{
var select = base.OrmSelect(dywhere).AsTable(_repo.AsTableSelectValueInternal);