开发者

NHibernate Criteria Query vs. LINQ to NHibernate

I understand that there are queries you can't express in LINQ to NHibernate that you can using NHibernate Criteria. But, as far performance, is开发者_开发问答 it safe to assume that using NHibernate Criteria is generally better than LINQ to NHibernate?


Even though NHibernate Criteria is better in terms of performance, NHibernate Linq provides compile time checking. I rarely have seen any project having issues using any of the 2 since the performance gains are miniscule.

In my case I usually use Linq except in cases where I cannot express them and then I have to use ICriteria. The benefit of compile time checking outweighs the minor performance gains.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜