C# 클래스 Elmah.ConnectionStringHelper

Helper class for resolving connection strings.
파일 보기 프로젝트 열기: elmah/Elmah 1 사용 예제들

공개 메소드들

메소드 설명
GetConnectionString ( System.Collections.IDictionary config ) : string

Gets the connection string from the given configuration dictionary.

GetConnectionString ( System.Collections.IDictionary config, bool resolveDataSource ) : string

Gets the connection string from the given configuration, resolving ~/ and DataDirectory if necessary.

GetConnectionStringProviderName ( System.Collections.IDictionary config ) : string

Gets the provider name from the named connection string (if supplied) from the given configuration dictionary.

GetDataSourceFilePath ( string connectionString ) : string

Extracts the Data Source file path from a connection string ~/ gets resolved as does |DataDirectory|

GetResolvedConnectionString ( string connectionString ) : string

Converts the supplied connection string so that the Data Source specification contains the full path and not ~/ or DataDirectory.

비공개 메소드들

메소드 설명
GetDataSourceFilePath ( DbConnectionStringBuilder builder, string connectionString ) : string
MapPath ( string path ) : string
ResolveDataSourceFilePath ( string path ) : string

메소드 상세

GetConnectionString() 공개 정적인 메소드

Gets the connection string from the given configuration dictionary.
public static GetConnectionString ( System.Collections.IDictionary config ) : string
config System.Collections.IDictionary
리턴 string

GetConnectionString() 공개 정적인 메소드

Gets the connection string from the given configuration, resolving ~/ and DataDirectory if necessary.
public static GetConnectionString ( System.Collections.IDictionary config, bool resolveDataSource ) : string
config System.Collections.IDictionary
resolveDataSource bool
리턴 string

GetConnectionStringProviderName() 공개 정적인 메소드

Gets the provider name from the named connection string (if supplied) from the given configuration dictionary.
public static GetConnectionStringProviderName ( System.Collections.IDictionary config ) : string
config System.Collections.IDictionary
리턴 string

GetDataSourceFilePath() 공개 정적인 메소드

Extracts the Data Source file path from a connection string ~/ gets resolved as does |DataDirectory|
public static GetDataSourceFilePath ( string connectionString ) : string
connectionString string
리턴 string

GetResolvedConnectionString() 공개 정적인 메소드

Converts the supplied connection string so that the Data Source specification contains the full path and not ~/ or DataDirectory.
public static GetResolvedConnectionString ( string connectionString ) : string
connectionString string
리턴 string