Well i see that Or's can be applied, but I need them to be added dynamically, so if they want to select 28 states, then it has 28 or's added. I am using a method which is passing in all the criteria i need and then it returns them as an IQueryable and then it sends the whole query into NHibernate. The only thing is that it is just adding the queries together, which is basically just an AND. I am wondering if there is a way to combine some of them as OR's, or possibly if there were a way to dynamically insert OR's into the linq query that is being made when a certain criteria gets entered.
On Aug 10, 12:01 pm, Tuna Toksoz <[email protected]> wrote: > https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/q... > <https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/q...>Look > for or. > > Tuna Toksöz > Eternal sunshine of the open source mind. > > http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike > > > > On Mon, Aug 10, 2009 at 7:51 PM, lukefrice <[email protected]> wrote: > > > Yes. Is there a way to do that? > > > On Aug 10, 11:46 am, Tuna Toksoz <[email protected]> wrote: > > > Criteria with disjunctions? > > > > Tuna Toksöz > > > Eternal sunshine of the open source mind. > > >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt... > > > > On Mon, Aug 10, 2009 at 7:43 PM, lukefrice <[email protected]> wrote: > > > > states, and they --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
