mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	@@ -17,7 +17,7 @@
 | 
			
		||||
		<SignAssembly>true</SignAssembly>
 | 
			
		||||
		<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
 | 
			
		||||
		<DelaySign>false</DelaySign>
 | 
			
		||||
		<Version>3.2.833</Version>
 | 
			
		||||
		<Version>3.5.100-preview20240725</Version>
 | 
			
		||||
		<PackageReadmeFile>readme.md</PackageReadmeFile>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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