Inner or Right Outer Join in Nhibernate and Fluent Nhibernate on Many to Many collection

前端 未结 2 977
情深已故
情深已故 2021-01-05 12:45

How can I force NHibernate to do a RIGHT outer join or an INNER join instead of a LEFT outer join on a many to many collection?

The reason I would want to do this is

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 13:22

    You can use NHibernate's HQL syntax to generate a query that's reminiscent of SQL, but uses NHibernate's mapping abilities. HQL supports right outer join (or just right join for short). The following pages are good references for NHibernate's HQL query language:

    • HQL Query Syntax
    • HQL Queries

提交回复
热议问题