Hi Macko,

I'm not familiar with your movie database, but the example I gave you (if it works) where it used an alias, creates a join:

.JoinAlias(mg => mg.Film, () => film)

... this joins on the association between MovieGenre (m:1) Movie.

Hope that helps clarify.

Richard

-----Original Message----- From: Macko
Sent: Tuesday, December 28, 2010 12:06 PM
To: nhusers
Subject: [nhusers] Re: Summary entities and QueryOver

On 28 Gru, 11:59, "Richard Brown \(gmail\)" <[email protected]>
wrote:
QueryOver is just a wrapper on top of ICriteria, so it joins in the same
way.

There's no direct way to join two separate queries, you can only traverse
associations.  Sometimes you can manage what you need using sub-queries.

HQL/LINQ might be a better choice if you need more complex joins.

Can you give an example of joins using QueryOver for my movie db?



--
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.

--
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.

Reply via email to