Browse Source

Mapper async bug

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
11ac7f434d
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

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

@ -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;
}

Loading…
Cancel
Save