Ok, I want the following: Select p.* from Predmet p inner join RelacijePredmeta rp where rp.PredmetId = predmetId
I dont want this: Select * from Predmet p inner join RelacijePredmeta rp where rp.PredmetId = predmetId On Nov 24, 3:33 pm, "Richard Brown \(gmail\)" <[email protected]> wrote: > I think that returns a List<Predmet> already? > > (I suspect I'm missing something obvious though.) > > > > > > > > -----Original Message----- > From: Luka > Sent: Wednesday, November 24, 2010 12:42 PM > To: nhusers > Subject: [nhusers] QueryOver to select an Entity > > Hi, > I have a question. I have this query: > > var query = QueryOver.Of<Predmet>() > .JoinQueryOver<RelacijaPredmeta>(p=>p.RelacijePredmeta) > .Where(r=>r.Predmet1.Id == predmetId) > > How can I return only Predmet entity but not RelacijaPredmeta? > > Thanks > > -- > 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 > athttp://groups.google.com/group/nhusers?hl=en. -- 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.
