Create your own Disjunction object?
Disjunction disj = new Disjunction();
for(int i = 0; i < numRestrictions; i++)
disj.Add( Restrictions.Eq( .... ) );
If not this, then please give an example of the sort of code you'd
like to write.
Cheers,
John
On Aug 10, 8:15 pm, lukefrice <[email protected]> wrote:
> I do understand, but I am looking more for something like
> PredicateBuilder. Is there anything like that that can be used with
> NHibernate?
>
> On Aug 10, 1:23 pm, Tuna Toksoz <[email protected]> wrote:
>
>
>
> > this is programatic, you have as much flexibility as your imagination.
> > ICriterion x=something;
> > if(something)
> > x=Restrictions.Or(x,anotherRestriction);
>
> > if(another)
> > x=Restrictions.Or(x,anotherthinghere);
>
> > Can I tell what I mean?
>
> > 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 9:20 PM, lukefrice <[email protected]> wrote:
> > > way to combine some of them as OR's, or po- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---