下面是针对特定类型的类NHibernate的的.class相当于QueryOver
select a from Animal a
where TYPE(a) in ('Cat', 'Dog')
and a.sex = 'Male'
order by a.name
select a from Animal a
where a.class in ('Cat', 'Dog')
and a.sex = 'Male'
order by a.name
我想知道HQL查询是存在的,相当于使用QueryOver?
也许有,但在此期间,你总是可以'.Where(Projections.eq(“class”,...)' – Firo 2012-07-16 07:28:00