This commit is contained in:
sunkaixuan
2019-01-25 23:54:22 +08:00
parent 11ac7f434d
commit e29b4f61fc

View File

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