So most simply, it would be best if there were a way to dynamically
add OR's into the lambda expression. As far as i know, though, thats
not an option.
On Aug 11, 9:14 am, lukefrice wrote:
> Basically I am doing it like this.
>
> private static Expression>
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
en source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
>
>
> On Mon, Aug 10, 2009 at 7:51 PM, lukefrice wrote:
>
> > Yes. Is there a way to do that?
>
> > On Aug 10, 11:46 am, Tuna Toksoz wrote:
> > > Crite
n Mon, Aug 10, 2009 at 7:43 PM, lukefrice 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 nhusers@googlegroups.com
To unsub
I have been building an advanced search mechanism, and have now run
into the requirement for dynamic OR statements and i do not know if
there are any solutions possible with NHibernate. I will not know how
many parameters will be searched for, so it has to be dynamic. Just so
you understand, I am
na Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
>
>
> On Thu, Jul 30, 2009 at 4:15 PM, lukefrice wrote:
>
> > And just to let you know, it is basically necessary for me to only
And just to let you know, it is basically necessary for me to only
load these properties and this one collection, because the Person
table has over 80 properties. Thats the way it had to be built, but i
dont need most of those in this situation. Thanks in advance.
--~--~-~--~~-
I am lazy loading the collections, and also because there are so many
fields within the person table, I am writing a projection function to
retrieve only certain properties. It works with properties, just not
collections of other entities. I would be fine if they were loaded in
as proxies and i co
I am lazy loading the collections, and also because there are so many
fields within the person table, I am writing a projection function to
retrieve only certain properties. It works with properties, just not
collections of other entities. I would be fine if they were loaded in
as proxies and i co