Lee,

It is an easy way to write:

    public class Linq<T>
    {
        /// <summary>
        /// Gets the query.
        /// </summary>
        /// <value>The query.</value>
        public INHibernateQueryable<T> Query
        { get { return new ActiveRecordContext().Session.Linq<T>
(); } }

    }



On 12 Mag, 18:27, Chad Lee <[email protected]> wrote:
> Where is this syntax from?
>
> new Linq<JobDetail>().Query
>
> That doesn't look familiar.
>
> On Tue, May 12, 2009 at 8:32 AM, Alessandro C. <
>
>
>
> [email protected]> wrote:
>
> > Is there something wrong with this:
>
> > jobDetail is a parameter of type JobDetail
>
> >            var jobDet = (from pd in new Linq<JobDetail>().Query
> >                         where pd.OrderDetail == this && pd !=
> > jobDetail
> >                         select pd).ToList();
>
> > Without "&& pd != jobDetail" it works fine, with "&& pd != jobDetail"
> > it gives an exception "object not reference....".
>
> > This sentence is inside the OrderDetail entity class and my needs is
> > to exclude jobDetail itself.
>
> > Thanks in advance.
> > Alessandro C.- Nascondi testo citato
>
> - Mostra testo citato -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" 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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to