예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 /// <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));
 }