Example #1
0
        public static void RemoveColumnWithSchema(this ITransformationProvider database, string table, string column)
        {
            if (!ColumnExistsWithSchema(database, table, column))
            {
                return;
            }

            database.DeleteColumnConstraints(table, column);
            database.ExecuteNonQuery(string.Format("ALTER TABLE {0} DROP COLUMN {1} ", table, column));
        }