mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-10 01:22:26 +08:00
- 修复 未发布功能WhereObject/WhereItems 单条参数化;- 恢复 Repository.DataFilter Enable/Disable 功能;
This commit is contained in:
@ -56,6 +56,7 @@ namespace FreeSql
|
||||
_repository.DbContextOptions.EnableCascadeSave = false;
|
||||
}
|
||||
}
|
||||
public RepositoryDataFilter DataFilter => _repository.DataFilter;
|
||||
public void AsType(Type entityType) => _repository.AsType(entityType);
|
||||
Func<Type, string, string> _asTableRule;
|
||||
public void AsTable(Func<string, string> rule)
|
||||
@ -130,6 +131,7 @@ namespace FreeSql
|
||||
repo.UnitOfWork = UnitOfWork;
|
||||
repo.DbContextOptions = DbContextOptions;
|
||||
repo.DbContextOptions.EnableCascadeSave = false;
|
||||
(repo as BaseRepository<object>).DataFilter = DataFilter;
|
||||
repo.AsTable(_asTableRule);
|
||||
return repo;
|
||||
}
|
||||
|
Reference in New Issue
Block a user