We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4069b1 + 14ee07f commit cef3635Copy full SHA for cef3635
src/ShardingCore/Core/TrackerManagers/TrackerManager.cs
@@ -67,13 +67,16 @@ public bool IsDbContextModel(Type entityType)
67
68
public Type TranslateEntityType(Type entityType)
69
{
70
- if (!_dbContextModels.ContainsKey(entityType))
+ if (_shardingConfigOptions.UseEntityFrameworkCoreProxies)
71
72
- if (_shardingConfigOptions.UseEntityFrameworkCoreProxies && entityType.BaseType != null)
+ if (!_dbContextModels.ContainsKey(entityType))
73
74
- if (_dbContextModels.ContainsKey(entityType.BaseType))
+ if (entityType.BaseType != null)
75
76
- return entityType.BaseType;
+ if (_dbContextModels.ContainsKey(entityType.BaseType))
77
+ {
78
+ return entityType.BaseType;
79
+ }
80
}
81
82
0 commit comments