Closed naderjavid closed 1 year ago
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
https://github.com/EasyAbp/AbpHelper.CLI/pull/178#discussion_r888298775