Synchronization code

This commit is contained in:
sunkaixuan
2023-11-17 02:56:41 +08:00
parent 796379a863
commit b204e37b2d

View File

@@ -1862,7 +1862,7 @@ namespace SqlSugar
{
result = this.Context.Utilities.DataReaderToSelectArrayList<TResult>(dataReader);
}
else if (entityType.IsAnonymousType() || isComplexModel)
else if (entityType.IsAnonymousType() || isComplexModel|| StaticConfig.EnableAot)
{
result = this.Context.Utilities.DataReaderToList<TResult>(dataReader);
}