修复bug

This commit is contained in:
xuejiaming 2022-11-01 13:59:05 +08:00
parent 339b543477
commit 5166bf01d7
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ namespace ShardingCore.Extensions
contextModel.GetFieldValue("_entityTypes") as SortedDictionary<string, EntityType>;
foreach (var entityType in entityTypes)
{
if (entityType.GetFieldValue("_data") is List<object> _data)
if (entityType.Value.GetFieldValue("_data") is List<object> _data)
{
_data.Clear();
}
@ -186,7 +186,7 @@ namespace ShardingCore.Extensions
contextModel.GetFieldValue("_entityTypes") as SortedDictionary<string, EntityType>;
foreach (var entityType in entityTypes)
{
if (entityType.GetFieldValue("_data") is List<object> _data)
if (entityType.Value.GetFieldValue("_data") is List<object> _data)
{
_data.Clear();
}