Skip to content

Commit e131302

Browse files
committed
Fixed NotEqual operator in ExpressionFormatter
1 parent 5369740 commit e131302

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Simple.Data.Ado/ExpressionFormatterBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ private string LogicalExpressionToWhereClause(SimpleExpression expression)
5757
private string EqualExpressionToWhereClause(SimpleExpression expression)
5858
{
5959
if (expression.RightOperand == null) return string.Format("{0} {1}", FormatObject(expression.LeftOperand, null), Operators.IsNull);
60-
if (CommonTypes.Contains(expression.RightOperand.GetType())) return FormatAsComparison(expression, "=");
60+
if (CommonTypes.Contains(expression.RightOperand.GetType())) return FormatAsComparison(expression, Operators.Equal);
6161

6262
return FormatAsComparison(expression, Operators.Equal);
6363
}
6464

6565
private string NotEqualExpressionToWhereClause(SimpleExpression expression)
6666
{
6767
if (expression.RightOperand == null) return string.Format("{0} {1}", FormatObject(expression.LeftOperand, null), Operators.IsNotNull);
68-
if (CommonTypes.Contains(expression.RightOperand.GetType())) return FormatAsComparison(expression, "!=");
68+
if (CommonTypes.Contains(expression.RightOperand.GetType())) return FormatAsComparison(expression, Operators.NotEqual);
6969

7070
return FormatAsComparison(expression, Operators.NotEqual);
7171
}

0 commit comments

Comments
 (0)