Class DatabaseTargetSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes one configuration-driven database role target for a Cephalon app.
public sealed class DatabaseTargetSettingsInheritance
Section titled “Inheritance”object ← DatabaseTargetSettings
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”DatabaseTargetSettings(string?, string?, string?, string?, string?, DatabaseRuntimeSettings?)
Section titled “ DatabaseTargetSettings(string?, string?, string?, string?, string?, DatabaseRuntimeSettings?)”Initializes a new instance of the
public DatabaseTargetSettings(string? provider = null, string? connectionStringName = null, string? connectionString = null, string? useRole = null, string? schema = null, DatabaseRuntimeSettings? runtime = null)Parameters
Section titled “Parameters”provider string?
connectionStringName string?
connectionString string?
useRole string?
schema string?
runtime DatabaseRuntimeSettings?
Properties
Section titled “Properties”ConnectionString
Section titled “ ConnectionString”Gets the selected inline connection string.
public string? ConnectionString { get; }Property Value
Section titled “Property Value”ConnectionStringName
Section titled “ ConnectionStringName”Gets the selected root connection-string name.
public string? ConnectionStringName { get; }Property Value
Section titled “Property Value”Gets an empty database-target settings instance.
public static DatabaseTargetSettings Empty { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any database-target settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets the selected logical provider identifier.
public string? Provider { get; }Property Value
Section titled “Property Value”Runtime
Section titled “ Runtime”Gets the role-specific runtime overrides.
public DatabaseRuntimeSettings Runtime { get; }Property Value
Section titled “Property Value”Schema
Section titled “ Schema”Gets the selected schema override.
public string? Schema { get; }Property Value
Section titled “Property Value”UseRole
Section titled “ UseRole”Gets the referenced concrete database role used to supply the physical connection target.
public string? UseRole { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromSection(IConfigurationSection?)
Section titled “ FromSection(IConfigurationSection?)”Reads database-target settings from the supplied configuration section.
public static DatabaseTargetSettings FromSection(IConfigurationSection? section)Parameters
Section titled “Parameters”section IConfigurationSection?