Table of Contents

Class RelationalMigrationExecutor

Namespace
eQuantic.Core.Data.Relational.Migration
Assembly
eQuantic.Core.Data.Relational.dll

Applies provider-agnostic MigrationOperations as SQL DDL/DML: CREATE TABLE from the model (column types from the dialect, generated keys declared), single- and multi-column indexes, keyed data updates, column renames and type conversions — and hands the connection to escape-hatch steps.

public sealed class RelationalMigrationExecutor : IMigrationExecutor
Inheritance
RelationalMigrationExecutor
Implements
Inherited Members

Constructors

RelationalMigrationExecutor(DbDataSource, SqlDialect, RelationalModel)

Initializes the executor.

public RelationalMigrationExecutor(DbDataSource dataSource, SqlDialect dialect, RelationalModel model)

Parameters

dataSource DbDataSource
dialect SqlDialect
model RelationalModel

Methods

ApplyAsync(IReadOnlyList<MigrationOperation>, CancellationToken)

Applies the operations, in order.

public Task ApplyAsync(IReadOnlyList<MigrationOperation> operations, CancellationToken cancellationToken = default)

Parameters

operations IReadOnlyList<MigrationOperation>

The declared operations.

cancellationToken CancellationToken

The cancellation token.

Returns

Task