开发者

Compile NHibernate Linq expressions

开发者 https://www.devze.com 2023-01-13 08:47 出处:网络
Can NHibernat开发者_运维知识库e linq/lambda expressions be compiled so they aren\'t reevaluate on every use?Compiling them (into delegates) would make them execute in memory, which is something you de

Can NHibernat开发者_运维知识库e linq/lambda expressions be compiled so they aren't reevaluate on every use?


Compiling them (into delegates) would make them execute in memory, which is something you definitely do NOT want.

They must stay as expression trees in order to be parsed into Criteria expressions (2.x contrib provider) or HQL trees (3.x provider), and then into SQL.

0

精彩评论

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