mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 806 版本 <object> 无数据组织缺失问题;
This commit is contained in:
@ -47,12 +47,20 @@ namespace FreeSql.Internal
|
||||
) return null;
|
||||
var tbc = _cacheGetTableByEntity.GetOrAdd(common._orm.Ado.DataType, k1 => new ConcurrentDictionary<Type, TableInfo>()); //区分数据库类型缓存
|
||||
if (tbc.TryGetValue(entity, out var trytb)) return trytb;
|
||||
if (entity == typeof(object)) return new TableInfo
|
||||
if (entity == typeof(object))
|
||||
{
|
||||
Type = entity,
|
||||
CsName = entity.Name,
|
||||
DbName = entity.Name,
|
||||
DisableSyncStructure = true,
|
||||
var columnsEmpty = new ColumnInfo[0];
|
||||
return new TableInfo
|
||||
{
|
||||
Type = entity,
|
||||
CsName = entity.Name,
|
||||
DbName = entity.Name,
|
||||
DisableSyncStructure = true,
|
||||
ColumnsByPosition = columnsEmpty,
|
||||
ColumnsByCanUpdateDbUpdateValue = columnsEmpty,
|
||||
Primarys = columnsEmpty,
|
||||
Indexes = new IndexInfo[0],
|
||||
};
|
||||
};
|
||||
if (common.CodeFirst.GetDbInfo(entity) != null) return null;
|
||||
if (typeof(IEnumerable).IsAssignableFrom(entity) && entity.IsGenericType == true) return null;
|
||||
|
Reference in New Issue
Block a user