Class ConnectionStringResolution
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Resolves a provider connection string from either an inline value or a named entry under
the root ConnectionStrings section.
public static class ConnectionStringResolutionInheritance
Section titled “Inheritance”object ← ConnectionStringResolution
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”Resolve(IConfiguration?, string?, string?, string, string, string)
Section titled “ Resolve(IConfiguration?, string?, string?, string, string, string)”Resolves the effective connection string for a pack or provider.
public static string Resolve(IConfiguration? configuration, string? connectionString, string? connectionStringName, string defaultConnectionString, string sectionPath, string providerDisplayName)Parameters
Section titled “Parameters”configuration IConfiguration?
The application configuration root.
connectionString string?
The inline connection string value.
connectionStringName string?
The root-level ConnectionStrings key to resolve when an inline value is not used.
defaultConnectionString string
The provider default to use when neither an inline value nor a named value is configured.
sectionPath string
The logical provider options section used for diagnostics.
providerDisplayName string
The provider name used in human-readable error messages.
Returns
Section titled “Returns”The resolved connection string.