I'm trying to emulate subject query with NHibernate's IQueryOver
. So far I have
var q = CurrentSession.QueryOver<ObjectModel.Order>().
WhereRestrictionOn(o => o.Buyer.ID).IsIn(partyIDs).
WhereRestrictionOn(o => o.Seller.ID).IsIn(partyIDs);
This, however, generates an and
query, whereas I need to have an or
operator between two where
clauses.
How is this done with IQueryOver
?