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> /// Creates a <see cref="SqlUpdate"/> that updates rows in the specified <paramref name="table"/>. /// </summary> /// <param name="table"> /// The table to update. /// </param> /// <returns> /// A <see cref="SqlUpdate"/> that updates rows in the specified <paramref name="table"/>. /// </returns> public static ISqlUpdateClause Update(SqlTable table) { return new SqlUpdate.UpdateClause(table); }
public ISqlJoinClause LeftJoin(SqlTable table) { return(JoinInternal(SqlJoinType.Left, table)); }
public ISqlJoinClause RightJoin(SqlTable table) { return(JoinInternal(SqlJoinType.Right, table)); }
public ISqlJoinClause InnerJoin(SqlTable table) { return(JoinInternal(SqlJoinType.Inner, table)); }
public ISqlJoinClause Join(SqlTable table) { return(JoinInternal(SqlJoinType.Default, table)); }
/// <summary> /// Creates a <see cref="SqlUpdate"/> that updates rows in the specified <paramref name="table"/>. /// </summary> /// <param name="table"> /// The table to update. /// </param> /// <returns> /// A <see cref="SqlUpdate"/> that updates rows in the specified <paramref name="table"/>. /// </returns> public static ISqlUpdateClause Update(SqlTable table) { return(new SqlUpdate.UpdateClause(table)); }
public UpdateClause(SqlTable table) : base(new SqlUpdate(table)) { }
protected override SqlExpression VisitTable(SqlTable expression) { _writer.WriteTable(expression.TableName, expression.Alias); return expression; }