Migration Migration Class

Syntax

Declaration

public abstract class MigrationPublic MustInherit Class Migration

Inheritance Hierarchy

  • System.Object
    System.Object
  • Migration
    Migration

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Fields summary

Properties summary

Methods summary

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

    Property Value

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

    Property Value

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

    Property Value

  • UpOperations
    UpOperations
    public virtual IReadOnlyList<MigrationOperation> UpOperations { get; }Public Overridable ReadOnly Property UpOperations As IReadOnlyList(Of MigrationOperation)

    Property Value

Methods

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

    Parameters

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

    Parameters

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

    Parameters

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll