/// <summary> /// Alters the table with the given name within this transaction to the /// specified table definition. /// </summary> /// <param name="transaction"></param> /// <param name="tableInfo"></param> /// <remarks> /// This should only be called under an exclusive lock on the connection. /// </remarks> /// <exception cref="StatementException"> /// If the table does not exist. /// </exception> public static void AlterTable(this ITransaction transaction, TableInfo tableInfo) { transaction.AlterObject(tableInfo); }
public static void AlterTable(this IQueryContext context, TableInfo tableInfo) { if (!context.UserCanAlterTable(tableInfo.TableName)) throw new InvalidAccessException(tableInfo.TableName); context.AlterObject(tableInfo); }
public static void AlterTable(this IQuery query, TableInfo tableInfo) { query.AlterObject(tableInfo); }
public static void AlterTable(this IQueryContext context, TableInfo tableInfo) { context.AlterObject(tableInfo); }