MigrationsOperations MigrationsOperations Class

Syntax

Declaration

public class MigrationsOperationsPublic Class MigrationsOperations

Inheritance Hierarchy

  • System.Object
    System.Object
  • MigrationsOperations
    MigrationsOperations

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

Methods summary

Constructors

  • MigrationsOperations(IOperationReporter, Assembly, Assembly, String, String, String, String)
    MigrationsOperations(IOperationReporter, Assembly, Assembly, String, String, String, String)
    public MigrationsOperations(IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, string environment, string projectDir, string contentRootPath, string rootNamespace)Public Sub New(reporter As IOperationReporter, assembly As Assembly, startupAssembly As Assembly, environment As String, projectDir As String, contentRootPath As String, rootNamespace As String)

    Parameters

    • reporter
    • assembly
      System.Reflection.Assembly
      System.Reflection.Assembly
    • startupAssembly
      System.Reflection.Assembly
      System.Reflection.Assembly
    • environment
      System.String
      System.String
    • projectDir
      System.String
      System.String
    • contentRootPath
      System.String
      System.String
    • rootNamespace
      System.String
      System.String

Methods

  • AddMigration(String, String, String)
    AddMigration(String, String, String)
    public virtual MigrationFiles AddMigration(string name, string outputDir, string contextType)Public Overridable Function AddMigration(name As String, outputDir As String, contextType As String) As MigrationFiles

    Parameters

    • name
      System.String
      System.String
    • outputDir
      System.String
      System.String
    • contextType
      System.String
      System.String

    Returns

  • GetMigrations(String)
    GetMigrations(String)
    public virtual IEnumerable<MigrationInfo> GetMigrations(string contextType)Public Overridable Function GetMigrations(contextType As String) As IEnumerable(Of MigrationInfo)

    Parameters

    • contextType
      System.String
      System.String

    Returns

  • RemoveMigration(String, Boolean)
    RemoveMigration(String, Boolean)
    public virtual MigrationFiles RemoveMigration(string contextType, bool force)Public Overridable Function RemoveMigration(contextType As String, force As Boolean) As MigrationFiles

    Parameters

    • contextType
      System.String
      System.String
    • force
      System.Boolean
      System.Boolean

    Returns

  • ScriptMigration(String, String, Boolean, String)
    ScriptMigration(String, String, Boolean, String)
    public virtual string ScriptMigration(string fromMigration, string toMigration, bool idempotent, string contextType)Public Overridable Function ScriptMigration(fromMigration As String, toMigration As String, idempotent As Boolean, contextType As String) As String

    Parameters

    • fromMigration
      System.String
      System.String
    • toMigration
      System.String
      System.String
    • idempotent
      System.Boolean
      System.Boolean
    • contextType
      System.String
      System.String

    Returns

    • System.String
      System.String
  • UpdateDatabase(String, String)
    UpdateDatabase(String, String)
    public virtual void UpdateDatabase(string targetMigration, string contextType)Public Overridable Sub UpdateDatabase(targetMigration As String, contextType As String)

    Parameters

    • targetMigration
      System.String
      System.String
    • contextType
      System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.Design.dll