NHibernate交叉点

发布于 2024-09-25 09:21:18 字数 145 浏览 0 评论 0原文

我怎样才能在nhibernate中进行交叉? 是

select enterprise.Id 
from Enterprises

intersect

select enterpiseID 
from vEnterprise

How can i do intersection in nhibernate?
is

select enterprise.Id 
from Enterprises

intersect

select enterpiseID 
from vEnterprise

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

っ〆星空下的拥抱 2024-10-02 09:21:18

http://www.hibernate.org/117.html#A21< /p>

目前不支持 union 或
相交。

_

您可以使用命名的 sql-query 并执行以下操作
原始 SQL 中的联合。 NHibernate 将
能够填充实体实例
从 sql 查询并将其返回为
查询结果。请参阅此处此处

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文