我在 Orchard 1.4 工作,我有一个包含布尔字段的ProductPart内容部分。IsFeaturedOrchard 1.4中的Projection模块很容易查询ProductPart。
我想写一个ProductService,并想查询ProductPartwhereIsFeatured字段是这样的:
contentManager.Query<ProductPart,ProductRecord>().Where(x=>x.IsFeatured).ToList()
如何得到这个?