- 移除 Repository.DataFilter 功能通知;#1208

This commit is contained in:
2881099
2024-07-25 01:18:24 +08:00
parent 04a538ab42
commit 86669a2d7f
11 changed files with 77 additions and 247 deletions

View File

@ -21,9 +21,10 @@ namespace FreeSql
{
}
public IBaseRepository<TEntity> GetRepository<TEntity>() where TEntity : class
public IBaseRepository<TEntity> GetRepository<TEntity>() where TEntity : class => GetRepository<TEntity, int>();
public IBaseRepository<TEntity, TKey> GetRepository<TEntity, TKey>() where TEntity : class
{
var repo = new DefaultRepository<TEntity, int>(_fsql);
var repo = new DefaultRepository<TEntity, TKey>(_fsql);
repo.UnitOfWork = this;
return repo;
}