使用 JoinQueryOver 進行連線查詢

要加入並例如過濾聯接表,請使用 JoinQueryOver。

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