Table of Contents

Class SQLMigrationRunner

Namespace
The.SQLServer.Schema
Assembly
Instagile.SQLServer.dll
public sealed class SQLMigrationRunner : MigrationRunner<IDatabase>
Inheritance
SQLMigrationRunner
Inherited Members

Constructors

SQLMigrationRunner(IDatabase, ILogger<SQLMigrationRunner>?, bool)

public SQLMigrationRunner(IDatabase database, ILogger<SQLMigrationRunner>? logger = null, bool useSQLAgent = true)

Parameters

database IDatabase
logger ILogger<SQLMigrationRunner>
useSQLAgent bool

Methods

CreateDbParameter(int, object)

protected override DbParameter CreateDbParameter(int number, object value)

Parameters

number int
value object

Returns

DbParameter

CreateDbParametersFor(MigrationRunnerOptions)

protected override DbParameter[] CreateDbParametersFor(MigrationRunnerOptions migrationParameters)

Parameters

migrationParameters MigrationRunnerOptions

Returns

DbParameter[]

GetControlTableExists(IDatabase)

protected override bool GetControlTableExists(IDatabase db)

Parameters

db IDatabase

Returns

bool

GetServerProperties(IDatabase)

protected override HashSet<string> GetServerProperties(IDatabase db)

Parameters

db IDatabase

Returns

HashSet<string>

ShouldSkipBatch(MigrationState, StatementBatch)

protected override bool ShouldSkipBatch(MigrationState state, StatementBatch batch)

Parameters

state MigrationState
batch StatementBatch

Returns

bool