Synchronization code

This commit is contained in:
sunkaixuan
2024-01-13 15:56:24 +08:00
parent 27d61bcf3f
commit ee330345a7
2 changed files with 9 additions and 2 deletions

View File

@@ -1924,7 +1924,14 @@ namespace SqlSugar
}
else if (entityType.IsAnonymousType() || isComplexModel||StaticConfig.EnableAot)
{
result = await this.Context.Utilities.DataReaderToListAsync<TResult>(dataReader);
if (entityType.IsClass() == false && StaticConfig.EnableAot)
{
result =await this.Bind.DataReaderToListAsync<TResult>(entityType, dataReader);
}
else
{
result = await this.Context.Utilities.DataReaderToListAsync<TResult>(dataReader);
}
}
else
{

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.134</version>
<version>5.1.4.135-preview05</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>