3
請幫我把這個SQL轉換爲Nhibernate中的Criteria。如果您有任何文件教導如何做到這一點請給我:SQL到NHibernate標準查詢轉換
select distinct visa
from employee e ,
(select NumberOfEmployee,GroupLeaderId
from [Group] as G JOIN
(select count(distinct employeeid) as NumberOfEmployee, GroupId
from [Project] p JOIN [EmployeeFunctionInProject] e
ON p.ProjectId = e.ProjectId
group by p.ProjectId,Name,GroupId)
as P
ON G.GroupId=P.GroupId
and NumberOfEmployee >=3) as Result
where e.EmployeeId = Result.GroupLeaderId
[什麼你有沒有試過?](http://www.whathaveyoutried.com) –