Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
c233ed3c27
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

2
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -1040,6 +1040,7 @@ namespace SqlSugar
{ {
result = GetData<TResult>(sqlObj); result = GetData<TResult>(sqlObj);
} }
RestoreMapping();
return result; return result;
} }
@ -1061,7 +1062,6 @@ namespace SqlSugar
{ {
result = this.Bind.DataReaderToList<TResult>(entityType, dataReader, QueryBuilder.SelectCacheKey); result = this.Bind.DataReaderToList<TResult>(entityType, dataReader, QueryBuilder.SelectCacheKey);
} }
RestoreMapping();
SetContextModel(result, entityType); SetContextModel(result, entityType);
return result; return result;
} }

Loading…
Cancel
Save