C# Class DBH.Helper.DBHelper2

显示文件 Open project: bluedusk/DBHelper

Public Properties

Property Type Description
ConfigFileName string
syncRoot object

Public Methods

Method Description
BegionTransaction ( ) : void
CommitTransaction ( ) : void
ExecuteQuery ( string sql ) : DataTable

查询操作

Get ( string dsName ) : IDBHelper

所有数据源

Init ( string configFileName ) : void
RollbackTransaction ( ) : void

Private Methods

Method Description
CreateHelper ( ) : IDBHelper

Method Details

BegionTransaction() public method

public BegionTransaction ( ) : void
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

ExecuteQuery() public static method

查询操作
public static ExecuteQuery ( string sql ) : DataTable
sql string
return System.Data.DataTable

Get() public static method

所有数据源
public static Get ( string dsName ) : IDBHelper
dsName string
return IDBHelper

Init() public static method

public static Init ( string configFileName ) : void
configFileName string
return void

RollbackTransaction() public method

public RollbackTransaction ( ) : void
return void

Property Details

ConfigFileName public_oe static_oe property

public static string ConfigFileName
return string

syncRoot public_oe static_oe property

public static object syncRoot
return object