File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,6 @@ public void CanSelectWithIsOperator()
706
706
Assert . DoesNotThrow ( ( ) => db . Animals . Select ( a => a . FatherSerialNumber is string ) . ToList ( ) ) ;
707
707
}
708
708
709
-
710
709
[ Test ]
711
710
public void CanSelectComponentProperty ( )
712
711
{
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ private bool CanBeEvaluatedInHql(Expression expression)
150
150
private bool CanBeEvaluatedInHql ( MethodCallExpression methodExpression )
151
151
{
152
152
var canBeEvaluated = methodExpression . Object == null || // Is static or extension method
153
- methodExpression . Object . NodeType != ExpressionType . Constant && // Does not belong to a parameter
154
- CanBeEvaluatedInHql ( methodExpression . Object ) ;
153
+ ( methodExpression . Object . NodeType != ExpressionType . Constant && // Does not belong to a parameter
154
+ CanBeEvaluatedInHql ( methodExpression . Object ) ) ;
155
155
foreach ( var argumentExpression in methodExpression . Arguments )
156
156
{
157
157
// If one of the agruments cannot be converted to hql we have to execute the method on the client side
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public void VisitSelector(Expression expression)
63
63
64
64
// Now visit the tree
65
65
var projection = Transform ( Visit ( expression ) ) ;
66
- if ( projection != expression && ! _hqlNodes . Contains ( expression ) || _hqlTreeNodes . Count == 0 )
66
+ if ( ( projection != expression && ! _hqlNodes . Contains ( expression ) ) || _hqlTreeNodes . Count == 0 )
67
67
{
68
68
ProjectionExpression = Expression . Lambda ( projection , _inputParameter ) ;
69
69
}
@@ -85,7 +85,6 @@ public void VisitSelector(Expression expression)
85
85
}
86
86
}
87
87
88
-
89
88
#region Overrides
90
89
91
90
public override Expression Visit ( Expression expression )
You can’t perform that action at this time.
0 commit comments