我知道nhibernate 3.1不支持linq语法的left join,我们必须使用hql。
但是有没有人知道这个功能是不是计划好的呢?什么时候?
谢谢
发布于 2011-04-19 23:07:34
显然没有关于该功能的详细信息
HQL中的左连接的一个小示例:
var hql = @"select c.IdClient as IdClient, c.Denomination As Denomination, g.IdGriffe as IdGriffe
from Client c
left outer join c.GriffeClient gc
left outer join gc.Griffe g
with g.IdGriffe = :id
order by c.Denomination";
var retour = session.CreateQuery(hql)
.SetInt32("id", id)
.SetResultTransformer(new NHibernate.Transform.AliasToEntityMapResultTransformer())
.List();问候
https://stackoverflow.com/questions/5660945
复制相似问题