Compile NHibernate Linq expressions
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.
精彩评论