Ejemplo n.º 1
0
        /// <summary>
        /// Adds an operation to drop an existing primary key that was created with the default name.
        /// </summary>
        /// <param name="table">The table that contains the primary key column. Schema name is optional, if no schema is specified then dbo is assumed. </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 DropPrimaryKey(string table, object anonymousArguments = null)
        {
            DbMigration dbMigration = new DbMigration();

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