Skip to content

Class DatabaseMigrationsSelection

Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll

Describes the active database-migration inputs resolved for a Cephalon app.

public sealed class DatabaseMigrationsSelection

objectDatabaseMigrationsSelection

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

DatabaseMigrationsSelection(bool?, bool?, IReadOnlyList<string>?)

Section titled “ DatabaseMigrationsSelection(bool?, bool?, IReadOnlyList<string>?)”

Initializes a new instance of the class.

[JsonConstructor]
public DatabaseMigrationsSelection(bool? applyOnStartup = null, bool? exitAfterApply = null, IReadOnlyList<string>? targets = null)

applyOnStartup bool?

exitAfterApply bool?

targets IReadOnlyList<string>?

Gets a value indicating whether migrations should be applied during host startup.

public bool? ApplyOnStartup { get; }

bool?

Gets an empty database-migrations selection instance.

public static DatabaseMigrationsSelection Empty { get; }

DatabaseMigrationsSelection

Gets a value indicating whether the host should exit after applying migrations.

public bool? ExitAfterApply { get; }

bool?

Gets a value indicating whether any migration-selection inputs were explicitly supplied.

public bool HasValues { get; }

bool

Gets the logical migration targets selected for the app.

public IReadOnlyList<string> Targets { get; }

IReadOnlyList<string>