nhibernate Query with join using JoinQueryOver


Example

To join and and for instance filter on the joined table use JoinQueryOver.

IList<Customer> customers = session.QueryOver<Customer>()
    .Inner.JoinQueryOver(x => x.Organisation)
    .Where(y => y.Name == "Acme Inc")
    .List();