How can I write this query with QueryOver.
select * from User usr where exists (select ord.ID from Order ord where ord.UserID = usr.ID)
I know we can write subqueries with QueryOver like ..WithSubSelect.WhereProperty(x=>x.ID == subquery.as<int>()). But I want to use field of the main query in the subquery in order to use it in where clause.
Is this possible ?
thank you for your helps
1 Answer