public static SqlLikeScalarExpression Create(
     SqlScalarExpression expression,
     SqlScalarExpression pattern,
     bool not,
     SqlStringLiteral escapeSequence = null)
 {
     return(new SqlLikeScalarExpression(expression, pattern, not, escapeSequence));
 }
Example #2
0
        public static SqlStringLiteral Create(string value)
        {
            if (!SqlStringLiteral.FrequentlyUsedStrings.TryGetValue(value, out SqlStringLiteral sqlStringLiteral))
            {
                sqlStringLiteral = new SqlStringLiteral(value);
            }

            return(sqlStringLiteral);
        }
 private SqlLikeScalarExpression(
     SqlScalarExpression expression,
     SqlScalarExpression pattern,
     bool not,
     SqlStringLiteral escapeSequence = null)
 {
     this.Expression     = expression ?? throw new ArgumentNullException(nameof(expression));
     this.Pattern        = pattern ?? throw new ArgumentNullException(nameof(pattern));
     this.Not            = not;
     this.EscapeSequence = escapeSequence;
 }
Example #4
0
 public static SqlStringPathExpression Create(
     SqlPathExpression parentPath,
     SqlStringLiteral value) => new SqlStringPathExpression(parentPath, value);
Example #5
0
 private SqlStringPathExpression(SqlPathExpression parentPath, SqlStringLiteral value)
     : base(parentPath)
 {
     this.Value = value ?? throw new ArgumentNullException(nameof(value));
 }