PublishProject 项目与报价ProjectQuotes 是一对多的关系
我查询项目的时候顺便查询报价 我怎么把报价的条件加到下列的queryable中去呢?
比如我想查询 报价中大于1万的项目应该怎么查
IQueryable<PublishProject> queryable = _publishProjectRepository.GetCurrentDbContext().PublishProjects;
queryable = queryable.Where(c => c.UserId == userGuid);
return queryable.Include(c => c.ProjectQuotes)
.OrderBy(c => c.CreateTime)
.Skip(pulishProjectQqueyModel.PageSize * (pulishProjectQqueyModel.PageIndex - 1))
.Take(pulishProjectQqueyModel.PageSize)
.ToList
这么清楚居然没人回答 博客园沦落了
没太明白你的意思,EF 有where添加约束条件呀。