Nhibernate:2 列总和的限制
我可以使用 HNibernate Criteria 创建此 sql 查询吗:
Select * from Table1 where Column1 > (Column2 + Column3)
所有 3 列都是 int32。 谢谢
Can I create this sql query using HNibernate Criteria:
Select * from Table1 where Column1 > (Column2 + Column3)
All 3 columns are int32.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
Expression
并编写一些 SQL,这对我有用。You can use an
Expression
and write some SQL, that's what works for me.好吧,在第 n 次阅读了这个问题的问题后,我决定编写一个不包括编写 SQL 的实现。
您可以在 http://savale.blogspot.com/2011 查看实施情况/04/nhibernate-and-missing.html 你可以用它来写:
Well, after reading for the n-th time a question with this exact problem i decided to write an implementation that doesn't include writing SQL.
You can check the implementation at http://savale.blogspot.com/2011/04/nhibernate-and-missing.html with which you can write: