0
我有下面的表結構,我想把查詢轉化爲NH標準,但我不知道如何合併正確的'投影',有誰知道如何?nHibernate標準 - 我如何實現'有數'
而且我想變成一個標準的查詢:
select ComponentId from Table_1
where [Name] = 'Contact' or [Name] = 'CurrencyPair'
group by ComponentId
having count(VersionId) = 2
另請參閱http://stackoverflow.com/questions/467172/hibernate-criteria-api-having-clause-work-arounds – Ian 2010-12-20 12:50:34