所以,我有一个属性,它是一个表达式。
public Expression<Func<Profile, bool>> ManagerFilter { get; set; }
接下来,我想实现这个过滤器,它是上面在这里动态表达的:
var queryTest = applicantCacheRepo
.Include(a=>a.Profile)
.ThenInclude(p=>p.ProfileEmployer)
.ThenInclude(p=>p.Employer)
.Include(a=>a.ProfileApplicationDetail)
.ThenInclude(p=>p.ApplicationStatusSysCodeUnique)
.Include(a=>a.Person)
.ThenInclude(p=>p.PersonDetail)
.Include(a=>a.JobSpecification)
.ThenInclude(j=>j.JobSpecificationDetail)
.FirstOrDefaultAsync(a=>a.Profile == filters.ManagerFilter)
我在这里要做的是为
轮廓
在该查询中动态。问题是我不知道
轮廓
将根据其进行过滤。
问题
is:如何在此处动态实现此过滤器?