Table of Contents

Class MigrationOptions

Namespace
GroupeIsa.Neos.Migration
Assembly
GroupeIsa.Neos.Migration.Abstractions.dll

Defines migration options.

public record MigrationOptions : IEquatable<MigrationOptions>
Inheritance
MigrationOptions
Implements
Inherited Members

Constructors

MigrationOptions(bool, bool, bool)

Defines migration options.

public MigrationOptions(bool AllowDataLoss = false, bool UpdateDatabase = true, bool Force = false)

Parameters

AllowDataLoss bool

true to allow data loss; otherwise, false.

UpdateDatabase bool

true Existing database will be migrated. If not exists, then it will be created. Otherwise, false Existing database will not be migrated. If not exists, then it will be created.

Force bool

true to force migration even if SchemaVersion has not changed; otherwise, false.

Properties

AllowDataLoss

true to allow data loss; otherwise, false.

public bool AllowDataLoss { get; init; }

Property Value

bool

Force

true to force migration even if SchemaVersion has not changed; otherwise, false.

public bool Force { get; init; }

Property Value

bool

UpdateDatabase

true Existing database will be migrated. If not exists, then it will be created. Otherwise, false Existing database will not be migrated. If not exists, then it will be created.

public bool UpdateDatabase { get; init; }

Property Value

bool