コード例 #1
0
 /// <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);
 }
コード例 #2
0
        public static void AlterTable(this IQueryContext context, TableInfo tableInfo)
        {
            if (!context.UserCanAlterTable(tableInfo.TableName))
                throw new InvalidAccessException(tableInfo.TableName);

            context.AlterObject(tableInfo);
        }
コード例 #3
0
 public static void AlterTable(this IQuery query, TableInfo tableInfo)
 {
     query.AlterObject(tableInfo);
 }
コード例 #4
0
 public static void AlterTable(this IQueryContext context, TableInfo tableInfo)
 {
     context.AlterObject(tableInfo);
 }