예제 #1
0
        /// <summary>
        /// Adds an operation to drop an index based on its name.  This is a wrapper for the default DBMigration DropIndex.
        /// </summary>
        /// <param name="table">The name of the table to drop the index from. Schema name is optional, if no schema is specified then dbo is assumed.</param>
        /// <param name="columns">The columns.</param>
        /// <param name="anonymousArguments">Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.</param>
        public void DropIndex(string table, string[] columns, object anonymousArguments = null)
        {
            DbMigration dbMigration = new DbMigration();

            dbMigration.DropIndex(table, columns, anonymousArguments);
            Sql(dbMigration.GetMigrationSql(SqlConnection));
        }