mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 移除 Repository.DataFilter 功能通知;#1208
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -11,9 +11,10 @@ partial class FreeSqlDbContextExtensions
 | 
			
		||||
    /// <typeparam name="TEntity"></typeparam>
 | 
			
		||||
    /// <param name="that"></param>
 | 
			
		||||
    /// <returns></returns>
 | 
			
		||||
    public static IBaseRepository<TEntity> GetRepository<TEntity>(this IFreeSql that) where TEntity : class
 | 
			
		||||
    public static IBaseRepository<TEntity> GetRepository<TEntity>(this IFreeSql that) where TEntity : class => GetRepository<TEntity, int>(that);
 | 
			
		||||
    public static IBaseRepository<TEntity, TKey> GetRepository<TEntity, TKey>(this IFreeSql that) where TEntity : class
 | 
			
		||||
    {
 | 
			
		||||
        return new DefaultRepository<TEntity, int>(that);
 | 
			
		||||
        return new DefaultRepository<TEntity, TKey>(that);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user