MigrationsOperations MigrationsOperations Class

Definition

public class MigrationsOperations
Public Class MigrationsOperations
Inheritance
System.ObjectSystem.Object
MigrationsOperationsMigrationsOperations

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
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

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

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
System.Collections.Generic.IEnumerable<MigrationInfo> System.Collections.Generic.IEnumerable(Of MigrationInfo)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

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

ToString() ToString()

Inherited from System.Object

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