mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Support AOT
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user