Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 public ISqlSelectFromClause On(SqlExpression predicate)
 {
     _join.On = new SqlOn(predicate);
     return _from;
 }
Exemplo n.º 4
0
 /// <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;
 }
Exemplo n.º 5
0
 public ISqlWhereClause <SqlDelete> Where(SqlExpression predicate)
 {
     Parent.Where = new SqlWhere(predicate);
     return(new WhereClause(Parent, predicate));
 }