Migration Migration Class

Definition

public abstract class Migration
Public MustInherit Class Migration
Inheritance
System.ObjectSystem.Object
MigrationMigration

Constructors

Migration() Migration()

protected Migration()
Protected Sub New

Fields

InitialDatabase InitialDatabase

public const string InitialDatabase = "0"
Public Const InitialDatabase As String = "0"

Properties

ActiveProvider ActiveProvider

public virtual string ActiveProvider { get; set; }
Public Overridable Property ActiveProvider As String
Value
System.String System.String

DownOperations DownOperations

public virtual IReadOnlyList<MigrationOperation> DownOperations { get; }
Public Overridable ReadOnly Property DownOperations As IReadOnlyList(Of MigrationOperation)
Value
System.Collections.Generic.IReadOnlyList<MigrationOperation> System.Collections.Generic.IReadOnlyList(Of MigrationOperation)

TargetModel TargetModel

public virtual IModel TargetModel { get; }
Public Overridable ReadOnly Property TargetModel As IModel
Value
IModel IModel

UpOperations UpOperations

public virtual IReadOnlyList<MigrationOperation> UpOperations { get; }
Public Overridable ReadOnly Property UpOperations As IReadOnlyList(Of MigrationOperation)
Value
System.Collections.Generic.IReadOnlyList<MigrationOperation> System.Collections.Generic.IReadOnlyList(Of MigrationOperation)

Methods

BuildTargetModel(ModelBuilder) BuildTargetModel(ModelBuilder)

protected virtual void BuildTargetModel(ModelBuilder modelBuilder)
Protected Overridable Sub BuildTargetModel(modelBuilder As ModelBuilder)
Parameters
modelBuilder
ModelBuilder ModelBuilder

Down(MigrationBuilder) Down(MigrationBuilder)

protected virtual void Down(MigrationBuilder migrationBuilder)
Protected Overridable Sub Down(migrationBuilder As MigrationBuilder)
Parameters

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

Up(MigrationBuilder) Up(MigrationBuilder)

protected abstract void Up(MigrationBuilder migrationBuilder)
Protected MustOverride Sub Up(migrationBuilder As MigrationBuilder)
Parameters