This commit is contained in:
sunkaixuan
2017-10-11 17:58:06 +08:00
parent 51e1cd1cb5
commit c233ed3c27

View File

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