获取数据列表时需要进行一定的条件过滤。发现IRepository只提供了GetList()和GetListAsync()方法。请问如何实现条件过滤呢?
///
/// 获取全部可用的租户列表
///
///
public async Task> GetList()
{
//var data = await _tenantRepository.GetList().Where(o => o.IsActive == true).GetAll().Where(o => o.IsActive == true)
// .ToListAsync();
var data = await _tenantRepository.GetListAsync().Where(o => o.IsActive == true);
throw new NotImplementedException();
}
whereif
linq
To customized methods for a repository, you can create your custom repository.
See https://docs.abp.io/en/abp/latest/Repositories#custom-repositories
By the way, please use English or most people can't understand it.
Most helpful comment
To customized methods for a repository, you can create your custom repository.
See https://docs.abp.io/en/abp/latest/Repositories#custom-repositories
By the way, please use English or most people can't understand it.