I need to implement a query
in nhibernate to do a union
between 2 tables. In sql , it would look something like this:
SELECT T1.Id AS ID
FROM TABELA1 AS T1
UNION
SELECT T2.Id AS ID
FROM TABELA2 AS T2
I did not find any way to make a union
, neither with QueryOver
, nor with Linq
.
Does anyone know anything that can help me?
Edit 1
With Linq
until I got a "almost" solution, more error occurred saying that Union
is not supported by