How do you do a union of two tables in NHibernate?
-
05-07-2019 - |
Question
I need to do a union of two tables using NHibernate and HQL. I have found very little help online, and I want to know if it is possible and if so how?
Solution
Found my answer:
http://www.hibernate.org/117.html#A21
It doesn't currently support union or intersect.
OTHER TIPS
I don't believe HQL supports unions, but you can write your own record transformer and author the sql by hand.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow