File tree Expand file tree Collapse file tree 4 files changed +3
-6
lines changed
NHibernate.DomainModel/Northwind/Entities Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ public class UserComponent
77 public UserComponent2 OtherComponent { get ; set ; }
88
99 public string Property3 => $ "{ Property1 } { Property2 } ";
10-
1110 }
1211
1312 public class UserComponent2
Original file line number Diff line number Diff line change @@ -706,7 +706,6 @@ public void CanSelectWithIsOperator()
706706 Assert . DoesNotThrow ( ( ) => db . Animals . Select ( a => a . FatherSerialNumber is string ) . ToList ( ) ) ;
707707 }
708708
709-
710709 [ Test ]
711710 public void CanSelectComponentProperty ( )
712711 {
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ private bool CanBeEvaluatedInHql(Expression expression)
150150 private bool CanBeEvaluatedInHql ( MethodCallExpression methodExpression )
151151 {
152152 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 ) ) ;
155155 foreach ( var argumentExpression in methodExpression . Arguments )
156156 {
157157 // 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)
6363
6464 // Now visit the tree
6565 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 )
6767 {
6868 ProjectionExpression = Expression . Lambda ( projection , _inputParameter ) ;
6969 }
@@ -85,7 +85,6 @@ public void VisitSelector(Expression expression)
8585 }
8686 }
8787
88-
8988 #region Overrides
9089
9190 public override Expression Visit ( Expression expression )
You can’t perform that action at this time.
0 commit comments