NHibernate 3.0内置的Linq提供程序稳定吗?
我可以依赖 NHibernate 3.0 内置的 Linq 提供程序来执行包含聚合函数(例如 Max 和 Min)以及包含字符串操作(例如 Contains、StartsWith 或 EndsWith)的复杂查询吗?
Can i depend on NHibernate 3.0 built-in Linq provider to perform complex queries contain aggregate functions such as Max and Min and contains string operations such as Contains, StartsWith, or EndsWith ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现的值得注意的问题是:
然而,这绝对是 NHContrib 提供商的改进。
您列出的操作在通常情况下都可以很好地支持。
The noticeable problems I found is:
However, it is definitely an improvement from the NHContrib provider.
The operations you listed are supported just fine in the usual scenarios.
关于 nhusers 名单存在很多争论,因为仍有不少问题悬而未决。
就我个人而言,我发现
queryover
可以满足我需要的一切,因此我会等到 Linq 提供程序随着时间的推移变得更加稳定。我建议加入 nhusers 小组以获得更好的感觉。
There has been much debate on the nhusers list as there are quite a few issues still outstanding.
Personally I have found that
queryover
does all that I need so I for one would wait until the Linq provider becomes more stable over time.I would recommned in joining the nhusers group to get a better feel.
LINQ 提供程序比 Ayende 编写的提供程序更加稳定和先进。 (不是鄙视他写的内容,而是因为他写的内容让我再次拿起了 NH)
我认为我遇到的 NH 查询的唯一问题是复合类型。您可以在 EF/L2S 中执行这些操作,NH3 似乎生成了正确的 sql,但无法执行它。
我个人喜欢 QueryOver,它对我来说读起来更好。
The LINQ provider is far more stable and advanced than the one written by Ayende. (not dising what he wrote it was because of what he wrote that i picked up NH again)
I think the only issue I've come across with NH Query is composite types. You can do them in EF/L2S, and NH3 seems to generate the correct sql but fails to get to executing it.
Personally I like QueryOver, it reads better to me.