开发者

NHibernate intersection

How can i do intersection in nhibernate? is

sele开发者_如何学JAVAct enterprise.Id 
from Enterprises

intersect

select enterpiseID 
from vEnterprise


http://www.hibernate.org/117.html#A21

It doesn't currently support union or intersect.

_

You could use a named sql-query and do the union in raw SQL. NHibernate will be able to populate entity instances from the sql-query and return those as the query result. See here and here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜