mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	@@ -12,6 +12,7 @@ namespace FreeSql
 | 
			
		||||
        /// <typeparam name="TEntity"></typeparam>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IBaseRepository<TEntity> GetRepository<TEntity>() where TEntity : class;
 | 
			
		||||
        IBaseRepository<TEntity, TKey> GetRepository<TEntity, TKey>() where TEntity : class;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    class RepositoryUnitOfWork : UnitOfWork, IRepositoryUnitOfWork
 | 
			
		||||
 
 | 
			
		||||
@@ -22,8 +22,8 @@ partial class FreeSqlDbContextExtensions
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    /// <param name="that"></param>
 | 
			
		||||
    /// <returns></returns>
 | 
			
		||||
    public static IUnitOfWork CreateUnitOfWork(this IFreeSql that)
 | 
			
		||||
    public static IRepositoryUnitOfWork CreateUnitOfWork(this IFreeSql that)
 | 
			
		||||
    {
 | 
			
		||||
        return new UnitOfWork(that);
 | 
			
		||||
        return new RepositoryUnitOfWork(that);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user