NHibernate Intersection

How can I do the intersection in nhibernate?

select enterprise.Id 
from Enterprises

intersect

select enterpiseID 
from vEnterprise
+3
source share
1 answer

http://www.hibernate.org/117.html#A21

It does not currently support merging or overlap.

_

You can use a named SQL query and do a join in raw SQL. NHibernate will be able to populate entity instances from the sql query and return them as the result of the query. See here and here .

+1
source

Source: https://habr.com/ru/post/1766749/


All Articles