mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	- 修复 WithMemory 对 InsertValueSql 属性无效的问题;
This commit is contained in:
		@@ -119,11 +119,12 @@ namespace FreeSql
 | 
			
		||||
        public ISelect<TEntity> WhereIf(bool condition, Expression<Func<TEntity, bool>> exp) => Select.WhereIf(condition, exp);
 | 
			
		||||
 | 
			
		||||
        readonly Dictionary<Type, IBaseRepository<object>> _childRepositorys = new Dictionary<Type, IBaseRepository<object>>();
 | 
			
		||||
        protected virtual IFreeSql GetChildFreeSql(Type type) => Orm;
 | 
			
		||||
        IBaseRepository<object> GetChildRepository(Type type)
 | 
			
		||||
        {
 | 
			
		||||
            if (_childRepositorys.TryGetValue(type, out var repo) == false)
 | 
			
		||||
            {
 | 
			
		||||
                repo = Orm.GetRepository<object>();
 | 
			
		||||
                repo = GetChildFreeSql(type).GetRepository<object>();
 | 
			
		||||
                repo.AsType(type);
 | 
			
		||||
                _childRepositorys.Add(type, repo);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
		<SignAssembly>true</SignAssembly>
 | 
			
		||||
		<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
 | 
			
		||||
		<DelaySign>false</DelaySign>
 | 
			
		||||
		<Version>3.2.812</Version>
 | 
			
		||||
		<Version>3.2.813-preview20240205</Version>
 | 
			
		||||
		<PackageReadmeFile>readme.md</PackageReadmeFile>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user