Someone will correct me if I'm wrong, but I'm fairly sure that you can't do
this in Criteria (and queryover is just syntax sugar over criteria), unless
you go with a very very messy set of subqueries to fake it.

-Francois

On Sun, Mar 6, 2011 at 6:02 PM, Wildjoe182 <[email protected]> wrote:

> When using Linq to NH, I can control the join on statement
> Ex: var q = from customer in session.Query<Customer>()
>  join sub in session.Query<Sub>()
>  *on customer.AccountNumber equals sub.AcctNo*
>
> Note:
> 1- There are no references between Customer and Sub in the mapping
> file.
> 2- For my own personal sanity, I'm trying to stay away from HQL. I
> find it incredibly frustrating to work with.
> 3- Because linq to NH doesn't support left joins, even with NH3.1GA,
> I'm trying to use the QueryOver.
>
> Is there a way to specify the left join on columns using QueryOver or
> perhaps, by using an alias?
>
> Regards
>
>
> --
> 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