Exact behavior of Services.ContentManager.Query<MyPart, MyPartRecord>()

Topics: Customizing Orchard, Troubleshooting, Writing modules
Mar 18, 2013 at 10:13 AM
Hello,

Does somebody could explain for me the difference between Services.ContentManager.Query<MyPart, MyPartRecord>() and Services.ContentManager.Query<MyPart>() ?

Thanks
Coordinator
Mar 18, 2013 at 5:38 PM
.Query<Part> will just match you current context to this Part, .Query<Part, PartRecord> will do a join do the Record and let you specify a constraint on it.