NHibernate (+ FluentNhibernate) : Join two detached tables

我是研究僧i 提交于 2019-12-05 23:55:12
Radim Köhler

We can use HQL - but only HQL.

Multiple classes may appear, resulting in a cartesian product or "cross" join.

from Formula, Parameter
from Formula as form, Parameter as param

So that would be the way with HQL

SELECT f.Code, f.Label
FROM Article a,
     Family f 
WHERE a.FamilyCode = f.Code
AND f.Label LIKE 'p%'

Check also this 9.3.2. The IQuery interface and maybe this Q & A

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!