File tree 1 file changed +2
-2
lines changed
src/ShardingCore/Extensions
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public static void RemoveDbContextRelationModelThatIsShardingTable(this DbContex
85
85
contextModel . GetFieldValue ( "_entityTypes" ) as SortedDictionary < string , EntityType > ;
86
86
foreach ( var entityType in entityTypes )
87
87
{
88
- if ( entityType . GetFieldValue ( "_data" ) is List < object > _data )
88
+ if ( entityType . Value . GetFieldValue ( "_data" ) is List < object > _data )
89
89
{
90
90
_data . Clear ( ) ;
91
91
}
@@ -186,7 +186,7 @@ public static void RemoveDbContextAllRelationModelWithoutShardingDataSourceOnly(
186
186
contextModel . GetFieldValue ( "_entityTypes" ) as SortedDictionary < string , EntityType > ;
187
187
foreach ( var entityType in entityTypes )
188
188
{
189
- if ( entityType . GetFieldValue ( "_data" ) is List < object > _data )
189
+ if ( entityType . Value . GetFieldValue ( "_data" ) is List < object > _data )
190
190
{
191
191
_data . Clear ( ) ;
192
192
}
You can’t perform that action at this time.
0 commit comments