Class DatabaseMigrationsSelection
Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll
Describes the active database-migration inputs resolved for a Cephalon app.
public sealed class DatabaseMigrationsSelectionInheritance
Section titled “Inheritance”object ← DatabaseMigrationsSelection
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”DatabaseMigrationsSelection(bool?, bool?, IReadOnlyList<string>?)
Section titled “ DatabaseMigrationsSelection(bool?, bool?, IReadOnlyList<string>?)”Initializes a new instance of the
[JsonConstructor]public DatabaseMigrationsSelection(bool? applyOnStartup = null, bool? exitAfterApply = null, IReadOnlyList<string>? targets = null)Parameters
Section titled “Parameters”applyOnStartup bool?
exitAfterApply bool?
targets IReadOnlyList<string>?
Properties
Section titled “Properties”ApplyOnStartup
Section titled “ ApplyOnStartup”Gets a value indicating whether migrations should be applied during host startup.
public bool? ApplyOnStartup { get; }Property Value
Section titled “Property Value”bool?
Gets an empty database-migrations selection instance.
public static DatabaseMigrationsSelection Empty { get; }Property Value
Section titled “Property Value”ExitAfterApply
Section titled “ ExitAfterApply”Gets a value indicating whether the host should exit after applying migrations.
public bool? ExitAfterApply { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any migration-selection inputs were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Targets
Section titled “ Targets”Gets the logical migration targets selected for the app.
public IReadOnlyList<string> Targets { get; }