mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-20 12:58:15 +08:00
- 优化 FluentApi 继承关系可直接 ConfigEntity<BaseEntity> 生效;#1144
This commit is contained in:
@ -28,6 +28,9 @@ namespace FreeSql.Internal
|
||||
) return;
|
||||
var tbc = _cacheGetTableByEntity.GetOrAdd(common._orm.Ado.DataType, k1 => new ConcurrentDictionary<Type, TableInfo>()); //区分数据库类型缓存
|
||||
if (tbc.TryRemove(entity, out var trytb) && trytb?.TypeLazy != null) tbc.TryRemove(trytb.TypeLazy, out var trylz);
|
||||
var reltypes = tbc.Keys.Where(a => entity.IsAssignableFrom(a)).ToArray();
|
||||
foreach (var reltype in reltypes)
|
||||
if (tbc.TryRemove(reltype, out trytb) && trytb?.TypeLazy != null) tbc.TryRemove(trytb.TypeLazy, out var trylz);
|
||||
}
|
||||
internal static TableInfo GetTableByEntity(Type entity, CommonUtils common)
|
||||
{
|
||||
|
Reference in New Issue
Block a user