public SqlMemberIndexerScalarExpression( SqlScalarExpression memberExpression, SqlScalarExpression indexExpression) : base(SqlObjectKind.MemberIndexerScalarExpression) { if (memberExpression == null) { throw new ArgumentNullException("memberExpression"); } if (indexExpression == null) { throw new ArgumentNullException("indexExpression"); } this.MemberExpression = memberExpression; this.IndexExpression = indexExpression; }
private SqlObjectProperty( SqlPropertyName name, SqlScalarExpression expression) : base(SqlObjectKind.ObjectProperty) { if (name == null) { throw new ArgumentNullException("name"); } if (expression == null) { throw new ArgumentNullException("expression"); } this.Name = name; this.Expression = expression; }
private SqlCoalesceScalarExpression( SqlScalarExpression leftExpression, SqlScalarExpression rightExpression) : base(SqlObjectKind.CoalesceScalarExpression) { if (leftExpression == null) { throw new ArgumentNullException("leftExpression"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } this.LeftExpression = leftExpression; this.RightExpression = rightExpression; }
public static SqlMemberIndexerScalarExpression CreateSqlMemberIndexerScalarExpression( SqlScalarExpression first, SqlScalarExpression second, params SqlScalarExpression[] everythingElse) { List <SqlScalarExpression> segments = new List <SqlScalarExpression>(2 + everythingElse.Length); segments.Add(first); segments.Add(second); segments.AddRange(everythingElse); SqlMemberIndexerScalarExpression rootExpression = SqlMemberIndexerScalarExpression.Create(first, second); foreach (SqlScalarExpression indexer in segments.Skip(2)) { rootExpression = SqlMemberIndexerScalarExpression.Create(rootExpression, indexer); } return(rootExpression); }
public SqlInScalarExpression(SqlScalarExpression expression, SqlScalarExpression[] items, bool not) : base(SqlObjectKind.InScalarExpression) { if (expression == null) { throw new ArgumentNullException("expression"); } if (items == null) { throw new ArgumentNullException("items"); } if (items.Length == 0) { throw new ArgumentException("items can't be empty."); } this.Expression = expression; this.Items = items; this.Not = not; }
private SqlWhereClause(SqlScalarExpression filterExpression) { this.FilterExpression = filterExpression ?? throw new ArgumentNullException(nameof(filterExpression)); }
public static SqlWhereClause Create(SqlScalarExpression filterExpression) => new SqlWhereClause(filterExpression);
private SqlOffsetSpec(SqlScalarExpression offsetExpression) { this.OffsetExpression = offsetExpression ?? throw new ArgumentNullException(nameof(offsetExpression)); }
public static SqlCoalesceScalarExpression Create( SqlScalarExpression left, SqlScalarExpression right) => new SqlCoalesceScalarExpression(left, right);
public static SqlInScalarExpression Create( SqlScalarExpression needle, bool not, params SqlScalarExpression[] haystack) => new SqlInScalarExpression(needle, not, haystack);
private SqlLimitSpec(SqlScalarExpression limitExpression) { this.LimitExpression = limitExpression ?? throw new ArgumentNullException(nameof(limitExpression)); }
public static SqlConversionScalarExpression Create(SqlScalarExpression expression, Type sourceType, Type targetType) { return(new SqlConversionScalarExpression(expression, sourceType, targetType)); }
public static SqlCoalesceScalarExpression Create( SqlScalarExpression leftExpression, SqlScalarExpression rightExpression) { return(new SqlCoalesceScalarExpression(leftExpression, rightExpression)); }
public static SqlMemberIndexerScalarExpression Create( SqlScalarExpression memberExpression, SqlScalarExpression indexExpression) { return(new SqlMemberIndexerScalarExpression(memberExpression, indexExpression)); }
private SqlSelectValueSpec( SqlScalarExpression expression) { this.Expression = expression ?? throw new ArgumentNullException(nameof(expression)); }
public static SqlSelectValueSpec Create(SqlScalarExpression expression) => new SqlSelectValueSpec(expression);
public static SqlUnaryScalarExpression Create( SqlUnaryScalarOperatorKind operatorKind, SqlScalarExpression expression) { return(new SqlUnaryScalarExpression(operatorKind, expression)); }
public static SqlPropertyRefScalarExpression Create( SqlScalarExpression member, SqlIdentifier identifier) => new SqlPropertyRefScalarExpression(member, identifier);
public static SqlMemberIndexerScalarExpression Create( SqlScalarExpression member, SqlScalarExpression indexer) => new SqlMemberIndexerScalarExpression(member, indexer);
public static SqlBinaryScalarExpression Create( SqlBinaryScalarOperatorKind operatorKind, SqlScalarExpression left, SqlScalarExpression right) => new SqlBinaryScalarExpression(operatorKind, left, right);
public static SqlOrderByItem Create( SqlScalarExpression expression, bool isDescending) => new SqlOrderByItem(expression, isDescending);
private SqlTopSpec(SqlScalarExpression topExpression) { this.TopExpresion = topExpression ?? throw new ArgumentNullException(nameof(topExpression)); }
public static SqlSelectValueSpec Create(SqlScalarExpression expression) { return(new SqlSelectValueSpec(expression)); }
public static SqlInScalarExpression Create(SqlScalarExpression expression, bool not, IReadOnlyList <SqlScalarExpression> items) { return(new SqlInScalarExpression(expression, not, items)); }
public static SqlPropertyRefScalarExpression Create( SqlScalarExpression memberExpression, SqlIdentifier propertyIdentifier) { return(new SqlPropertyRefScalarExpression(memberExpression, propertyIdentifier)); }
public static SqlInScalarExpression Create( SqlScalarExpression needle, bool not, IReadOnlyList <SqlScalarExpression> haystack) => new SqlInScalarExpression(needle, not, haystack);
public static SqlInScalarExpression Create(SqlScalarExpression expression, bool not, params SqlScalarExpression[] items) { return(new SqlInScalarExpression(expression, not, items)); }
public static SqlObjectProperty Create( SqlPropertyName name, SqlScalarExpression expression) { return(new SqlObjectProperty(name, expression)); }
public static SqlSelectItem Create( SqlScalarExpression expression, SqlIdentifier alias = null) { return(new SqlSelectItem(expression, alias)); }
public static SqlConditionalScalarExpression Create( SqlScalarExpression condition, SqlScalarExpression consequent, SqlScalarExpression alternative) => new SqlConditionalScalarExpression(condition, consequent, alternative);