Mapper async bug

This commit is contained in:
sunkaixuan 2019-01-25 23:50:25 +08:00
parent 2f5ad11087
commit 11ac7f434d

View File

@ -1564,6 +1564,10 @@ namespace SqlSugar
asyncQueryable.Mapper(MapperAction);
if (this.MapperActionWithCache != null)
asyncQueryable.Mapper(MapperActionWithCache);
if (this.Mappers != null && asyncContext is QueryableProvider<T>)
{
(asyncQueryable as QueryableProvider<T>).Mappers = this.Mappers;
}
CopyQueryBuilder(asyncQueryable.QueryBuilder); return asyncQueryable;
}