mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 优化 忽略 List\<T\> 作为 Curd 类型操作;
This commit is contained in:
		@@ -406,6 +406,7 @@ namespace FreeSql.Tests
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void Test1()
 | 
			
		||||
        {
 | 
			
		||||
            var gkjdjd = g.sqlite.Select<AuthorTest>().Where(a => a.Post.Count > 0).ToSql();
 | 
			
		||||
 | 
			
		||||
            var testrunsql1 =  g.mysql.Select<TaskBuild>().Where(a => a.OptionsEntity04 > DateTime.Now.AddDays(0).ToString("yyyyMMdd").TryTo<int>()).ToSql();
 | 
			
		||||
            var testrunsql2 = g.pgsql.Select<TaskBuild>().Where(a => a.OptionsEntity04 > DateTime.Now.AddDays(0).ToString("yyyyMMdd").TryTo<int>()).ToSql();
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ namespace FreeSql.Internal
 | 
			
		||||
            var tbc = _cacheGetTableByEntity.GetOrAdd(common._orm.Ado.DataType, k1 => new ConcurrentDictionary<Type, TableInfo>()); //区分数据库类型缓存
 | 
			
		||||
            if (tbc.TryGetValue(entity, out var trytb)) return trytb;
 | 
			
		||||
            if (common.CodeFirst.GetDbInfo(entity) != null) return null;
 | 
			
		||||
            if (typeof(IEnumerable).IsAssignableFrom(entity) && entity.IsGenericParameter == true) return null;
 | 
			
		||||
            if (typeof(IEnumerable).IsAssignableFrom(entity) && entity.IsGenericType == true) return null;
 | 
			
		||||
            if (entity.IsArray) return null;
 | 
			
		||||
 | 
			
		||||
            object entityDefault = null;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user