I work in Orchard 1.4, where I have a piece of content ProductPartthat has a boolean field IsFeatured. It is easy to query ProductPartusing the Projection module in Orchard 1.4.
I want to write ProductServiceand want to query ProductPartwhere the field is IsFeaturedtrue:
contentManager.Query<ProductPart,ProductRecord>().Where(x=>x.IsFeatured).ToList()
How to get it?
source
share