예제 #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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 public ISqlJoinClause LeftJoin(SqlTable table)
 {
     return(JoinInternal(SqlJoinType.Left, table));
 }
예제 #4
0
 public ISqlJoinClause RightJoin(SqlTable table)
 {
     return(JoinInternal(SqlJoinType.Right, table));
 }
예제 #5
0
 public ISqlJoinClause InnerJoin(SqlTable table)
 {
     return(JoinInternal(SqlJoinType.Inner, table));
 }
예제 #6
0
 public ISqlJoinClause Join(SqlTable table)
 {
     return(JoinInternal(SqlJoinType.Default, table));
 }
예제 #7
0
 /// <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;
 }