sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Utils/ExtensionMethods.cs
/// <summary>
/// Converts the given <see cref="BinaryOperatorKind"/> into the SQL equivalent.
/// </summary>
Converts the given  into the SQL equivalent.
Converts the given into the SQL equivalent .
internal static string ToSqlOperator(this BinaryOperatorKind kind) => kind switch
        {
            BinaryOperatorKind.Or => "OR",
            BinaryOperatorKind.And => "AND",
            BinaryOperatorKind.Equal => "=",
            BinaryOperatorKind.NotEqual => "!=",
            BinaryOperatorKind.GreaterThan => ">",
            BinaryOperatorKind.GreaterThanOrEqual => ">=",
            BinaryOperatorKind.LessThan => "<",
            BinaryOperatorKind.LessThanOrEqual => "<=",
            BinaryOperatorKind.Add => "+",
            BinaryOperatorKind.Subtract => "-",
            BinaryOperatorKind.Multiply => "*",
            BinaryOperatorKind.Divide => "/",
            BinaryOperatorKind.Modulo => "%",
            _ => throw new InvalidOperationException($"Invalid Binary Operator '{kind}'")
        };
internal static string ToSqlOperator ( this BinaryOperatorKind kind ) => kind switch { BinaryOperatorKind . Or => " " , BinaryOperatorKind . And => " " , BinaryOperatorKind . Equal => " " , BinaryOperatorKind . NotEqual => " " , BinaryOperatorKind . GreaterThan => " " , BinaryOperatorKind . GreaterThanOrEqual => " " , BinaryOperatorKind . LessThan => " " , BinaryOperatorKind . LessThanOrEqual => " " , BinaryOperatorKind . Add => " " , BinaryOperatorKind . Subtract => " " , BinaryOperatorKind . Multiply => " " , BinaryOperatorKind . Divide => " " , BinaryOperatorKind . Modulo => " " , _ => throw new InvalidOperationException ( $" Invalid Binary Operator ' { kind } ' " ) } ;
Converts the given  into the SQL equivalent.
Converts the given into the SQL equivalent .
BinaryOperatorKind
this