@@ -19,13 +19,11 @@ public class InExpression : SqlExpression
19
19
/// </summary>
20
20
public InExpression (
21
21
SqlExpression item ,
22
- bool negated ,
23
22
SqlExpression values ,
24
23
CoreTypeMapping typeMapping )
25
24
: base ( typeof ( bool ) , typeMapping )
26
25
{
27
26
Item = item ;
28
- IsNegated = negated ;
29
27
Values = values ;
30
28
}
31
29
@@ -37,14 +35,6 @@ public InExpression(
37
35
/// </summary>
38
36
public virtual SqlExpression Item { get ; }
39
37
40
- /// <summary>
41
- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
42
- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
43
- /// any release. You should only use it directly in your code with extreme caution and knowing that
44
- /// doing so can result in application failures when updating to a new Entity Framework Core release.
45
- /// </summary>
46
- public virtual bool IsNegated { get ; }
47
-
48
38
/// <summary>
49
39
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
50
40
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -67,15 +57,6 @@ protected override Expression VisitChildren(ExpressionVisitor visitor)
67
57
return Update ( newItem , values ) ;
68
58
}
69
59
70
- /// <summary>
71
- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
72
- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
73
- /// any release. You should only use it directly in your code with extreme caution and knowing that
74
- /// doing so can result in application failures when updating to a new Entity Framework Core release.
75
- /// </summary>
76
- public virtual InExpression Negate ( )
77
- => new ( Item , ! IsNegated , Values , TypeMapping ! ) ;
78
-
79
60
/// <summary>
80
61
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
81
62
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -84,7 +65,7 @@ public virtual InExpression Negate()
84
65
/// </summary>
85
66
public virtual InExpression Update ( SqlExpression item , SqlExpression values )
86
67
=> item != Item || values != Values
87
- ? new InExpression ( item , IsNegated , values , TypeMapping ! )
68
+ ? new InExpression ( item , values , TypeMapping ! )
88
69
: this ;
89
70
90
71
/// <summary>
@@ -96,7 +77,7 @@ public virtual InExpression Update(SqlExpression item, SqlExpression values)
96
77
protected override void Print ( ExpressionPrinter expressionPrinter )
97
78
{
98
79
expressionPrinter . Visit ( Item ) ;
99
- expressionPrinter . Append ( IsNegated ? " NOT IN " : " IN " ) ;
80
+ expressionPrinter . Append ( " IN " ) ;
100
81
expressionPrinter . Append ( "(" ) ;
101
82
expressionPrinter . Visit ( Values ) ;
102
83
expressionPrinter . Append ( ")" ) ;
@@ -117,7 +98,6 @@ public override bool Equals(object? obj)
117
98
private bool Equals ( InExpression inExpression )
118
99
=> base . Equals ( inExpression )
119
100
&& Item . Equals ( inExpression . Item )
120
- && IsNegated . Equals ( inExpression . IsNegated )
121
101
&& Values . Equals ( inExpression . Values ) ;
122
102
123
103
/// <summary>
@@ -127,5 +107,5 @@ private bool Equals(InExpression inExpression)
127
107
/// doing so can result in application failures when updating to a new Entity Framework Core release.
128
108
/// </summary>
129
109
public override int GetHashCode ( )
130
- => HashCode . Combine ( base . GetHashCode ( ) , Item , IsNegated , Values ) ;
110
+ => HashCode . Combine ( base . GetHashCode ( ) , Item , Values ) ;
131
111
}
0 commit comments