Class DatabaseMigrationsSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven database migration behavior for a Cephalon app.
public sealed class DatabaseMigrationsSettingsInheritance
Section titled “Inheritance”object ← DatabaseMigrationsSettings
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”DatabaseMigrationsSettings(bool?, bool?, IReadOnlyList<string>?)
Section titled “ DatabaseMigrationsSettings(bool?, bool?, IReadOnlyList<string>?)”Initializes a new instance of the
public DatabaseMigrationsSettings(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 settings instance.
public static DatabaseMigrationsSettings 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 settings 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; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromSection(IConfigurationSection?)
Section titled “ FromSection(IConfigurationSection?)”Reads database-migration settings from the supplied configuration section.
public static DatabaseMigrationsSettings FromSection(IConfigurationSection? section)Parameters
Section titled “Parameters”section IConfigurationSection?