[nhusers] Re: Dynamic OR's in NHibernate

2009-08-11 Thread lukefrice
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>

[nhusers] Re: Dynamic OR's in NHibernate

2009-08-11 Thread lukefrice
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

[nhusers] Re: Dynamic OR's in NHibernate

2009-08-10 Thread lukefrice
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

[nhusers] Re: Dynamic OR's in NHibernate

2009-08-10 Thread lukefrice
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

[nhusers] Dynamic OR's in NHibernate

2009-08-10 Thread lukefrice
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

[nhusers] Re: How to use NHibernate Projections to retrieve a collection?

2009-07-30 Thread lukefrice
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

[nhusers] Re: How to use NHibernate Projections to retrieve a collection?

2009-07-30 Thread lukefrice
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. --~--~-~--~~-

[nhusers] How to use NHibernate Projections to retrieve a collection?

2009-07-29 Thread lukefrice
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

[nhusers] How to use NHibernate Projections to retrieve a collection.

2009-07-29 Thread lukefrice
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