/// <summary> /// Alters the <see cref="Table"/> with the specified <paramref name="name"/>. /// </summary> /// <param name="name">The name.</param> /// <returns>The table.</returns> public Table AlterTable(string name) { Table t = new Table(this, name, Modifier.Alter); MigrationSteps.Enqueue(t); return(t); }
/// <summary> /// Executes the specified <paramref name="sql"/> statement. /// </summary> /// <param name="sql">The SQL statment.</param> /// <returns>The SQL statement.</returns> public SqlStatement ExecuteSql(string sql) { SqlStatement stm = new SqlStatement(this, sql); MigrationSteps.Enqueue(stm); return(stm); }
/// <summary> /// Drops the <see cref="Table"/> with the specified /// <paramref name="name"/> from the <see cref="Database"/>. /// </summary> /// <param name="name">The name.</param> public void DropTable(string name) { MigrationSteps.Enqueue(new Table(this, name, Modifier.Drop)); }