SortableDeptRelatedCRUDServiceTEntity, TKey, TInput, TFilterFetchListAsync Method

由分页设置后的 ISelect 执行查询并获取实体列表。已重写。

Definition

Namespace: QuickAdmin.Service.CRUD
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
protected override Task<IList<TEntity>> FetchListAsync(
	ISelect<TEntity> iSel,
	CancellationToken cancellationToken
)

Parameters

iSel  ISelectTEntity
已被进行了分页、排序以及过滤条件设置的 ISelect 对象。
cancellationToken  CancellationToken
用于取消操作的令牌。

Return Value

TaskIListTEntity
实体列表,无记录时返回一个空列表。

Remarks

已重写,若 PopulateAuditorNamesInListtrue,对审计类实体自动填充 CreatorName/UpdaterName; 若 PopulateDeptPathInListtrue,对 IDeptRelatedEntityWithDeptPath 实体自动填充 DeptPath 属性。

注意:继续重写时不可再对 iSel 进行任何会影响查询条件的设置,比如 Where()/InnerJoin() 等等。

See Also