DbMigration Class
Entity Framework 5.0
Represents the base class for code-based migrations.
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
The DbMigration type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddColumn | Adds an operation to add a column to an existing table. |
![]() | AddForeignKey(String, String, String, String, Boolean, String, Object) | Adds an operation to create a new foreign key constraint. |
![]() | AddForeignKey(String, String(), String, String(), Boolean, String, Object) | Adds an operation to create a new foreign key constraint. |
![]() | AddPrimaryKey(String, String, String, Object) | Adds an operation to create a new primary key. |
![]() | AddPrimaryKey(String, String(), String, Object) | Adds an operation to create a new primary key based on multiple columns. |
![]() | AlterColumn | Adds an operation to alter the definition of an existing column. |
![]() | CreateIndex(String, String, Boolean, String, Object) | Adds an operation to create an index on a single column. |
![]() | CreateIndex(String, String(), Boolean, String, Object) | Adds an operation to create an index on multiple columns. |
![]() | CreateTable(Of TColumns) | Adds an operation to create a new table. |
![]() | Down | Operations to be performed during the downgrade process. |
![]() | DropColumn | Adds an operation to drop an existing column. |
![]() | DropForeignKey(String, String, Object) | Adds an operation to drop a foreign key constraint based on its name. |
![]() | DropForeignKey(String, String(), String, Object) | Adds an operation to drop a foreign key constraint based on the columns it targets. |
![]() | DropForeignKey(String, String, String, String, Object) | Adds an operation to drop a foreign key constraint based on the column it targets. |
![]() | DropIndex(String, String, Object) | Adds an operation to drop an index based on its name. |
![]() | DropIndex(String, String(), Object) | Adds an operation to drop an index based on the columns it targets. |
![]() | DropPrimaryKey(String, Object) | Adds an operation to drop an existing primary key that was created with the default name. |
![]() | DropPrimaryKey(String, String, Object) | Adds an operation to drop an existing primary key that does not have the default name. |
![]() | DropTable | Adds an operation to drop a table. |
![]() | Equals | Determines whether this instance is equal to a specified object. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Gets the data, for a parameter or column, as the specified type. (Overrides Object.GetHashCode.) |
![]() | GetType | Returns the runtime type of the current instance. |
![]() | MemberwiseClone | Creates a shallow copy of the current object. |
![]() | MoveTable | Adds an operation to move a table to a new schema. |
![]() | RenameColumn | Adds an operation to rename a column. |
![]() | RenameTable | Adds an operation to rename a table. To change the schema of a table use MoveTable. |
![]() | Sql | Adds an operation to execute a SQL command. |
![]() | ToString | Returns a string that represents the current object. (Overrides Object.ToString.) |
![]() | Up | Operations to be performed during the upgrade process. |
Show:
