internal SqlJoin(SqlJoinType type, SqlTable table, SqlExpression predicate = null) { if (table == null) throw new ArgumentNullException(nameof(table)); Type = type; Table = table; On = predicate == null ? null : new SqlOn(predicate); }
/// <summary> /// Initializes a new instance of the <see cref="SqlBinaryExpression"/> class using the specified /// <paramref name="left"/> and <paramref name="right"/> operands and the specified <paramref name="operator"/>. /// </summary> /// <param name="left"> /// The left operand of the binary expression. /// </param> /// <param name="operator"> /// The operator of the binary expression. /// </param> /// <param name="right"> /// The right operand of the binary expression. /// </param> internal SqlBinaryExpression(SqlExpression left, SqlBinaryOperator @operator, SqlExpression right) { if (left == null) throw new ArgumentNullException(nameof(left)); if (right == null) throw new ArgumentNullException(nameof(right)); Left = left; Operator = @operator; Right = right; }
public ISqlSelectFromClause On(SqlExpression predicate) { _join.On = new SqlOn(predicate); return _from; }
/// <summary> /// Initializes a new instance of the <see cref="SqlWhere"/> class. /// </summary> /// <param name="predicate"> /// The predicate the SQL WHERE clause uses. /// </param> public SqlWhere(SqlExpression predicate) { if (predicate == null) throw new ArgumentNullException(nameof(predicate)); Predicate = predicate; }
public ISqlWhereClause <SqlDelete> Where(SqlExpression predicate) { Parent.Where = new SqlWhere(predicate); return(new WhereClause(Parent, predicate)); }