public static SqlLikeScalarExpression Create( SqlScalarExpression expression, SqlScalarExpression pattern, bool not, SqlStringLiteral escapeSequence = null) { return(new SqlLikeScalarExpression(expression, pattern, not, escapeSequence)); }
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; }
public static SqlStringPathExpression Create( SqlPathExpression parentPath, SqlStringLiteral value) => new SqlStringPathExpression(parentPath, value);
private SqlStringPathExpression(SqlPathExpression parentPath, SqlStringLiteral value) : base(parentPath) { this.Value = value ?? throw new ArgumentNullException(nameof(value)); }