Export (0) Print
Expand All

DbMigration Class

Entity Framework 5.0

Represents the base class for code-based migrations.

System.Object
  System.Data.Entity.Migrations.DbMigration

Namespace:  System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)

public abstract class DbMigration

The DbMigration type exposes the following members.

  NameDescription
Protected methodDbMigrationInitializes a new instance of the DbMigration class.
Top

  NameDescription
Protected methodAddColumn Adds an operation to add a column to an existing table.
Protected methodAddForeignKey(String, String, String, String, Boolean, String, Object) Adds an operation to create a new foreign key constraint.
Protected methodAddForeignKey(String, String[], String, String[], Boolean, String, Object) Adds an operation to create a new foreign key constraint.
Protected methodAddPrimaryKey(String, String, String, Object) Adds an operation to create a new primary key.
Protected methodAddPrimaryKey(String, String[], String, Object) Adds an operation to create a new primary key based on multiple columns.
Protected methodAlterColumn Adds an operation to alter the definition of an existing column.
Protected methodCreateIndex(String, String, Boolean, String, Object) Adds an operation to create an index on a single column.
Protected methodCreateIndex(String, String[], Boolean, String, Object) Adds an operation to create an index on multiple columns.
Protected methodCreateTable<TColumns> Adds an operation to create a new table.
Public methodDown Operations to be performed during the downgrade process.
Protected methodDropColumn Adds an operation to drop an existing column.
Protected methodDropForeignKey(String, String, Object) Adds an operation to drop a foreign key constraint based on its name.
Protected methodDropForeignKey(String, String[], String, Object) Adds an operation to drop a foreign key constraint based on the columns it targets.
Protected methodDropForeignKey(String, String, String, String, Object) Adds an operation to drop a foreign key constraint based on the column it targets.
Protected methodDropIndex(String, String, Object) Adds an operation to drop an index based on its name.
Protected methodDropIndex(String, String[], Object) Adds an operation to drop an index based on the columns it targets.
Protected methodDropPrimaryKey(String, Object) Adds an operation to drop an existing primary key that was created with the default name.
Protected methodDropPrimaryKey(String, String, Object) Adds an operation to drop an existing primary key that does not have the default name.
Protected methodDropTable Adds an operation to drop a table.
Public methodEqualsDetermines whether this instance is equal to a specified object. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeGets the data, for a parameter or column, as the specified type. (Overrides Object.GetHashCode().)
Public methodGetTypeReturns the runtime type of the current instance.
Protected methodMemberwiseCloneCreates a shallow copy of the current object.
Protected methodMoveTable Adds an operation to move a table to a new schema.
Protected methodRenameColumn Adds an operation to rename a column.
Protected methodRenameTable Adds an operation to rename a table. To change the schema of a table use MoveTable.
Protected methodSql Adds an operation to execute a SQL command.
Public methodToStringReturns a string that represents the current object. (Overrides Object.ToString().)
Public methodUp Operations to be performed during the upgrade process.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft