/// <summary> /// 分页查询 /// </summary> /// <param name="parameter">查询参数</param> public async Task <PagerList <DomainDto> > PagerQueryDomainAsync(DomainQuery parameter) { if (parameter == null) { return(new PagerList <DomainDto>()); } var query = await CreateQuery(parameter); var queryable = DomainRepository.FindAsNoTracking().Where(query); queryable = Filter(queryable, parameter); return((queryable.ToPagerList(query.GetPager())).Convert(ToDto)); }