Property | Type | Description | |
---|---|---|---|
_ErrorMsg | string | ||
_IDataReader | IDataReader | ||
_IDbCommand | IDbCommand | ||
_IDbDataAdapter | IDbDataAdapter | ||
_IDbTransaction | IDbTransaction | ||
_SqlText | string |
Property | Type | Description | |
---|---|---|---|
BeginTransaction | void | ||
CommitTransaction | void | ||
ExecuteNoQuery | int | ||
ExecuteProcedureNoQuery | int | ||
ExecuteProcedureQuery | |||
ExecuteQuery | |||
ExecuteQuery | |||
ExecuteReader | IDataReader | ||
ExecuteScalar | object | ||
RollbackTransaction | void |
Method | Description | |
---|---|---|
Close ( ) : void |
关闭数据操作连接
|
|
DBHelperBase ( IDbConnection myConnection ) : System |
默认构造函数
|
|
DataTableDelete ( |
||
DataTableInsert ( |
||
DataTableUpdate ( |
||
ExecuteNoQuery ( string cmdText, |
||
ExecuteQuery ( string cmdText, |
||
GetDataSet ( string cmdText ) : |
执行Sql语句,返回结果数据Dataset
|
|
Open ( ) : void |
打开数据操作连接
|
Method | Description | |
---|---|---|
CreateAdapter ( string cmdText ) : IDbDataAdapter | ||
CreateCommand ( string cmdText, CommandType commandType ) : IDbCommand |
获得相应的数据命令
|
Method | Description | |
---|---|---|
BeginTransaction ( ) : void | ||
CommitTransaction ( ) : void | ||
ExecuteNoQuery ( string cmdText ) : int | ||
ExecuteProcedureNoQuery ( string procedureName, |
||
ExecuteProcedureQuery ( string procedureName, |
||
ExecuteQuery ( string cmdText ) : |
||
ExecuteQuery ( string cmdText, string talbeName ) : |
||
ExecuteReader ( string cmdText ) : IDataReader | ||
ExecuteScalar ( string cmdText ) : object | ||
RollbackTransaction ( ) : void |
protected CreateAdapter ( string cmdText ) : IDbDataAdapter | ||
cmdText | string | |
return | IDbDataAdapter |
protected CreateCommand ( string cmdText, CommandType commandType ) : IDbCommand | ||
cmdText | string | |
commandType | CommandType | |
return | IDbCommand |
public DBHelperBase ( IDbConnection myConnection ) : System | ||
myConnection | IDbConnection | |
return | System |
public DataTableDelete ( |
||
_dt | ||
return | int |
public DataTableInsert ( |
||
_dt | ||
return | int |
public DataTableUpdate ( |
||
_dt | ||
return | int |
public ExecuteNoQuery ( string cmdText, |
||
cmdText | string | |
parameters | ||
return | int |
public ExecuteQuery ( string cmdText, |
||
cmdText | string | |
parameters | ||
return |
public GetDataSet ( string cmdText ) : |
||
cmdText | string | Sql语句 |
return |
protected IDbDataAdapter _IDbDataAdapter | ||
return | IDbDataAdapter |
protected IDbTransaction _IDbTransaction | ||
return | IDbTransaction |