Question

I'm writing a module for Orchard and I need to know how to query the Orchard DB for ContentItems with a specific part. I want to do this in my PartDriver so I can return a SelectList with all the ContentItems present. I understand most of what I need to do except for the part where I query Orchard for the ContentItems.

Any one? Thanks in advance!

Was it helpful?

Solution

Inject IContentManager and Query<YourPart, YourPartRecord>

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top