File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 12
12
using Remotion . Linq . Parsing . Structure ;
13
13
using Remotion . Linq . Parsing . Structure . IntermediateModel ;
14
14
using Remotion . Linq . Parsing . Structure . NodeTypeProviders ;
15
+ using Remotion . Linq . Parsing . Structure . ExpressionTreeProcessors ;
15
16
16
17
namespace NHibernate . Linq
17
18
{
@@ -26,9 +27,11 @@ static NhRelinqQueryParser()
26
27
transformerRegistry . Register ( new RemoveRedundantCast ( ) ) ;
27
28
transformerRegistry . Register ( new SimplifyCompareTransformer ( ) ) ;
28
29
29
- var processor = ExpressionTreeParser . CreateDefaultProcessor ( transformerRegistry ) ;
30
- // Add custom processors here:
31
- // processor.InnerProcessors.Add (new MyExpressionTreeProcessor());
30
+ // If needing a compound processor for adding other processing, do not use
31
+ // ExpressionTreeParser.CreateDefaultProcessor(transformerRegistry), it would
32
+ // cause NH-3961 again by including a PartialEvaluatingExpressionTreeProcessor.
33
+ // Directly instanciate a CompoundExpressionTreeProcessor instead.
34
+ var processor = new TransformingExpressionTreeProcessor ( transformerRegistry ) ;
32
35
33
36
var nodeTypeProvider = new NHibernateNodeTypeProvider ( ) ;
34
37
You can’t perform that action at this time.
0 commit comments