Merge branch 'main' of github.com:dotnetcore/sharding-core
This commit is contained in:
commit
cef363552b
|
@ -66,10 +66,12 @@ namespace ShardingCore.Core.TrackerManagers
|
|||
}
|
||||
|
||||
public Type TranslateEntityType(Type entityType)
|
||||
{
|
||||
if (_shardingConfigOptions.UseEntityFrameworkCoreProxies)
|
||||
{
|
||||
if (!_dbContextModels.ContainsKey(entityType))
|
||||
{
|
||||
if (_shardingConfigOptions.UseEntityFrameworkCoreProxies && entityType.BaseType != null)
|
||||
if (entityType.BaseType != null)
|
||||
{
|
||||
if (_dbContextModels.ContainsKey(entityType.BaseType))
|
||||
{
|
||||
|
@ -77,6 +79,7 @@ namespace ShardingCore.Core.TrackerManagers
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return entityType;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue