Method | Description | |
---|---|---|
MySqlHelper ( ) : System | ||
MySqlHelper ( string connStr ) : System | ||
NewConnection ( ) : DbConnection |
创建一个DbConnection对象
|
|
NewDataAdapter ( DbCommand cmd ) : |
创建一个数据适配器对象
|
|
PrepareCommand ( DbConnection conn, DbTransaction trans, string sqlText ) : DbCommand |
使用给定参数创建DbCommand对象
|
Method | Description | |
---|---|---|
AddParamsToCmd ( |
||
AddParamsToList ( List |
public MySqlHelper ( string connStr ) : System | ||
connStr | string | |
return | System |
public NewDataAdapter ( DbCommand cmd ) : |
||
cmd | DbCommand | 命令对象 |
return |
public PrepareCommand ( DbConnection conn, DbTransaction trans, string sqlText ) : DbCommand | ||
conn | DbConnection | 数据库连接 |
trans | DbTransaction | 数据库事务 |
sqlText | string | 含有问号占位符的SQL命令 |
return | DbCommand |