diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs index 480feee40..4a5a96030 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs @@ -472,6 +472,10 @@ namespace SqlSugar { result.Add(name, DeserializeObject(readerValues.First(y => y.Key.EqualCase(item.Name)).Value + "")); } + else if (StaticConfig.EnableAot && item.PropertyType == typeof(Type)) + { + //No Add + } else { result.Add(name, DataReaderToDynamicList_Part(readerValues, item, reval, mappingKeys));