AbpHelper.CLI
AbpHelper.CLI copied to clipboard
add filtering to ui & get entity list and totalCount at same time from repository
https://github.com/EasyAbp/AbpHelper.CLI/pull/178#discussion_r888298775
Hi:
I think we should expose and override GetListAsync
or CreateFilteredQueryAsync
, and replace the default PagedAndSortedResultRequestDto
to targetGetListInput
.
The framework provides these methods to make filtering easier and faster
Like this
protected override async Task<IQueryable<GoodsType>> CreateFilteredQueryAsync(GoodsTypeGetListInput input)
{
// TODO: AbpHelper generated
return (await base.CreateFilteredQueryAsync(input))
//loop EntityInfo.Properties output filter conditions
.WhereIf(input.DisplayName.IsNullOrWhiteSpace(), x => x.DisplayName == input.DisplayName);
}
Duplicate of https://github.com/EasyAbp/AbpHelper.CLI/pull/189