C# Class DBH.Config.XmlConfigurator

几种方式初始化DBHelper数据源 1. 使用默认配置文件Web.config,App.config 2. 指定配置文件路径 3. 指定配置节点XmlElement,XmlNode
Show file Open project: bluedusk/DBHelper

Public Methods

Method Description
Configure ( ) : void

使用默认配置文件初始化,App.config,Web.config

Configure ( XmlElement element ) : void

指定配置节点初始化

Configure ( XmlNode node ) : void

指定配置节点初始化

Configure ( string filePath ) : void

指定配置文件初始化

Private Methods

Method Description
XmlConfigurator ( ) : System

不可初始化

Method Details

Configure() public static method

使用默认配置文件初始化,App.config,Web.config
public static Configure ( ) : void
return void

Configure() public static method

指定配置节点初始化
public static Configure ( XmlElement element ) : void
element System.Xml.XmlElement
return void

Configure() public static method

指定配置节点初始化
public static Configure ( XmlNode node ) : void
node System.Xml.XmlNode
return void

Configure() public static method

指定配置文件初始化
public static Configure ( string filePath ) : void
filePath string
return void