CRUDServiceBaseTEntity, TKey, TInput, TFilterFetchList Method

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

Definition

Namespace: QuickAdmin.Service.CRUD
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.10
C#
protected virtual IList<TEntity> FetchList(
	ISelect<TEntity> iSel
)

Parameters

iSel  ISelectTEntity
已被进行了分页、排序以及过滤条件设置的 ISelect 对象。

Return Value

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

Remarks

GetPagingOutput(PagingInputTFilter) 调用来获取分页结果列表,默认直接 iSel.ToList(),并且,对于审计类实体,当 PopulateAuditorNamesInListtrue 时, 会自动填充操作用户姓名相关属性,如 CreatorNameUpdaterName 等。

若要返回自行处理后的实体列表,可去重写此方法。注意:重写时不可再对 iSel 进行任何会影响查询条件的设置,比如 Where()/InnerJoin() 等等。

See Also