I read about the subquery in the criteria, but I still can't get it right. Here I take one example, and if someone can help me write that using a subquery will be great.
Let's say we have a table
Employee{EmployeeId.(int),Name(string),Post(string),No_Of_years_working(int)}
Now I want all employees to be managers and work less than 10 years. I know that we can get the result without using subqueries, but I want to use a subquery to understand how it works in the criteria.
So, how can I write criteria using a subquery to get these employees.
subquery nhibernate criteria
Bipul
source share