使用 JoinQueryOver 进行连接查询

要加入并例如过滤联接表,请使用 JoinQueryOver。

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