mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 优化 忽略 List\<T\> 作为 Curd 类型操作;
This commit is contained in:
@ -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