CRUDServiceBaseTEntity, TKey, TInput, TFilterGetDtoPagingOutputAsyncTDto Method
执行查询,并返回指定页码的,把 TEntity 映射为 TDto 后的数据。
Namespace: QuickAdmin.Service.CRUDAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.10
public virtual Task<PagingOutput<TDto>> GetDtoPagingOutputAsync<TDto>(
Expression<Func<TEntity, TDto>> expSelect,
PagingInput<TFilter> pagingInput = null,
Func<ISelect<TEntity>, ISelect<TEntity>> funcSelect = null,
CancellationToken cancellationToken = default
)
- expSelect ExpressionFuncTEntity, TDto
-
用来构造返回数据的表达式。
若为 null,TDto 与 TEntity 同名属性的字段将被查询。
- pagingInput PagingInputTFilter (Optional)
- 分页输入参数。
- funcSelect FuncISelectTEntity, ISelectTEntity (Optional)
- 对 ISelect 进行额外处理的函数,比如需要联表查询时可利用此函数进行。
- cancellationToken CancellationToken (Optional)
- 用于取消操作的令牌。
- TDto
- 返回数据的类型。
TaskPagingOutputTDto分页输出。
IPagingServiceTEntity, TKey, TFilterGetDtoPagingOutputAsyncTDto(ExpressionFuncTEntity, TDto, PagingInputTFilter, FuncISelectTEntity, ISelectTEntity, CancellationToken)