C# Class Dian.Web.Utility.ConfigHelper

web.config操作类
Datei anzeigen Open project: stone0090/dian

Public Methods

Method Description
GetAppSettings ( string key ) : string

得到AppSettings中的配置信息

GetConfigBool ( string key ) : bool

得到AppSettings中的配置Bool信息

GetConfigDecimal ( string key ) : decimal

得到AppSettings中的配置Decimal信息

GetConfigInt ( string key ) : int

得到AppSettings中的配置int信息

GetConfigString ( string key ) : string

得到AppSettings中的配置String信息

GetConnectionStrings ( int index ) : ConnectionStringSettings
GetConnectionStrings ( string key ) : ConnectionStringSettings
GetDbName ( int index ) : string
GetDbName ( string key ) : string
GetDbProviderName ( int index ) : string
GetDbProviderName ( string key ) : string
GetDbString ( int key ) : string
GetDbString ( string key ) : string

Method Details

GetAppSettings() public static method

得到AppSettings中的配置信息
public static GetAppSettings ( string key ) : string
key string
return string

GetConfigBool() public static method

得到AppSettings中的配置Bool信息
public static GetConfigBool ( string key ) : bool
key string
return bool

GetConfigDecimal() public static method

得到AppSettings中的配置Decimal信息
public static GetConfigDecimal ( string key ) : decimal
key string
return decimal

GetConfigInt() public static method

得到AppSettings中的配置int信息
public static GetConfigInt ( string key ) : int
key string
return int

GetConfigString() public static method

得到AppSettings中的配置String信息
public static GetConfigString ( string key ) : string
key string
return string

GetConnectionStrings() public static method

public static GetConnectionStrings ( int index ) : ConnectionStringSettings
index int
return System.Configuration.ConnectionStringSettings

GetConnectionStrings() public static method

public static GetConnectionStrings ( string key ) : ConnectionStringSettings
key string
return System.Configuration.ConnectionStringSettings

GetDbName() public static method

public static GetDbName ( int index ) : string
index int
return string

GetDbName() public static method

public static GetDbName ( string key ) : string
key string
return string

GetDbProviderName() public static method

public static GetDbProviderName ( int index ) : string
index int
return string

GetDbProviderName() public static method

public static GetDbProviderName ( string key ) : string
key string
return string

GetDbString() public static method

public static GetDbString ( int key ) : string
key int
return string

GetDbString() public static method

public static GetDbString ( string key ) : string
key string
return string