C# Class DBH.DBHelperManager

Mostra file Open project: bluedusk/DBHelper

Public Methods

Method Description
GetHelper ( ) : IDBHelper
GetHelper ( string dsName ) : IDBHelper

根据数据源名称获得相应的DBHelper 若缓存中有则直接返回 ///

InitDS ( ) : DataSourceConfig>.Dictionary
InitDS ( XmlElement element ) : DataSourceConfig>.Dictionary
InitDS ( XmlNode xn ) : DataSourceConfig>.Dictionary
InitDS ( string fileName ) : DataSourceConfig>.Dictionary
InitDataSource ( DataSourceConfig>.Dictionary ds ) : void

Private Methods

Method Description
AddDBHelper ( string dsName, DataSourceConfig dsConfig ) : void
CreateDBHelper ( string dsName, DataSourceConfig dsConfig ) : void

Create DBHelper

DBHelperManager ( ) : System

不可实例化

InitDS ( XmlNodeList xnl ) : DataSourceConfig>.Dictionary

Init DataSource List; Init DBHelper Cache

Method Details

GetHelper() public static method

public static GetHelper ( ) : IDBHelper
return IDBHelper

GetHelper() public static method

根据数据源名称获得相应的DBHelper 若缓存中有则直接返回 ///
public static GetHelper ( string dsName ) : IDBHelper
dsName string data source name(lowcase)
return IDBHelper

InitDS() public static method

public static InitDS ( ) : DataSourceConfig>.Dictionary
return DataSourceConfig>.Dictionary

InitDS() public static method

public static InitDS ( XmlElement element ) : DataSourceConfig>.Dictionary
element System.Xml.XmlElement
return DataSourceConfig>.Dictionary

InitDS() public static method

public static InitDS ( XmlNode xn ) : DataSourceConfig>.Dictionary
xn System.Xml.XmlNode
return DataSourceConfig>.Dictionary

InitDS() public static method

public static InitDS ( string fileName ) : DataSourceConfig>.Dictionary
fileName string
return DataSourceConfig>.Dictionary

InitDataSource() public static method

public static InitDataSource ( DataSourceConfig>.Dictionary ds ) : void
ds DataSourceConfig>.Dictionary
return void