IMigrator IMigrator Interface

Definition

public interface IMigrator
Public Interface IMigrator

Methods

GenerateScript(String, String, Boolean) GenerateScript(String, String, Boolean)

string GenerateScript(string fromMigration = null, string toMigration = null, bool idempotent = false)
Function GenerateScript(fromMigration As String = Nothing, toMigration As String = Nothing, idempotent As Boolean = False) As String
Parameters
fromMigration
System.String System.String
toMigration
System.String System.String
idempotent
System.Boolean System.Boolean
Returns
System.String System.String

Migrate(String) Migrate(String)

void Migrate(string targetMigration = null)
Sub Migrate(targetMigration As String = Nothing)
Parameters
targetMigration
System.String System.String

MigrateAsync(String, CancellationToken) MigrateAsync(String, CancellationToken)

Task MigrateAsync(string targetMigration = null, CancellationToken cancellationToken = null)
Function MigrateAsync(targetMigration As String = Nothing, cancellationToken As CancellationToken = Nothing) As Task
Parameters
targetMigration
System.String System.String
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task