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

Class DatabaseTargetSettings

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

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

Describes one configuration-driven database role target for a Cephalon app.

public sealed class DatabaseTargetSettings

objectDatabaseTargetSettings

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

DatabaseTargetSettings(string?, string?, string?, string?, string?, DatabaseRuntimeSettings?)

Section titled “ DatabaseTargetSettings(string?, string?, string?, string?, string?, DatabaseRuntimeSettings?)”

Initializes a new instance of the class.

public DatabaseTargetSettings(string? provider = null, string? connectionStringName = null, string? connectionString = null, string? useRole = null, string? schema = null, DatabaseRuntimeSettings? runtime = null)

provider string?

connectionStringName string?

connectionString string?

useRole string?

schema string?

runtime DatabaseRuntimeSettings?

Gets the selected inline connection string.

public string? ConnectionString { get; }

string?

Gets the selected root connection-string name.

public string? ConnectionStringName { get; }

string?

Gets an empty database-target settings instance.

public static DatabaseTargetSettings Empty { get; }

DatabaseTargetSettings

Gets a value indicating whether any database-target settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the selected logical provider identifier.

public string? Provider { get; }

string?

Gets the role-specific runtime overrides.

public DatabaseRuntimeSettings Runtime { get; }

DatabaseRuntimeSettings

Gets the selected schema override.

public string? Schema { get; }

string?

Gets the referenced concrete database role used to supply the physical connection target.

public string? UseRole { get; }

string?

Reads database-target settings from the supplied configuration section.

public static DatabaseTargetSettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

DatabaseTargetSettings