ข้ามไปยังเนื้อหา

Class DatabaseMigrationsSettings

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven database migration behavior for a Cephalon app.

public sealed class DatabaseMigrationsSettings

objectDatabaseMigrationsSettings

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

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

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

Initializes a new instance of the class.

public DatabaseMigrationsSettings(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 settings instance.

public static DatabaseMigrationsSettings Empty { get; }

DatabaseMigrationsSettings

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

public bool? ExitAfterApply { get; }

bool?

Gets a value indicating whether any migration settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the logical migration targets selected for the app.

public IReadOnlyList<string> Targets { get; }

IReadOnlyList<string>

Reads database-migration settings from the supplied configuration section.

public static DatabaseMigrationsSettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

DatabaseMigrationsSettings