메소드 | 설명 | |
---|---|---|
DoubleQuoteString ( string value ) : string | ||
EscapeString ( string value ) : string |
Escapes the string.
|
|
ExecuteDataRow ( string connectionString, string commandText ) : DataRow |
Executes a single SQL command and returns the first row of the resultset. A new MySqlConnection object is created, opened, and closed during this method.
|
|
ExecuteDataset ( |
Executes a single SQL command and returns the resultset in a DataSet. The state of the MySqlConnection object remains unchanged after execution of this method.
|
|
ExecuteDataset ( string connectionString, string commandText ) : DataSet |
Executes a single SQL command and returns the resultset in a DataSet. A new MySqlConnection object is created, opened, and closed during this method.
|
|
ExecuteNonQuery ( |
Executes a single command against a MySQL database. The MySqlConnection is assumed to be open when the method is called and remains open after the method completes.
|
|
ExecuteNonQuery ( string connectionString, string commandText ) : int |
Executes a single command against a MySQL database. A new MySqlConnection is created using the MySqlConnection.ConnectionString given.
|
|
ExecuteReader ( |
Executes a single command against a MySQL database.
|
|
ExecuteReader ( string connectionString, string commandText ) : |
Executes a single command against a MySQL database.
|
|
ExecuteScalar ( |
Execute a single command against a MySQL database.
|
|
ExecuteScalar ( string connectionString, string commandText ) : object |
Execute a single command against a MySQL database.
|
|
UpdateDataSet ( string connectionString, string commandText, DataSet ds, string tablename ) : void |
Updates the given table with data from the given DataSet
|
메소드 | 설명 | |
---|---|---|
ExecuteReader ( |
Executes a single command against a MySQL database, possibly inside an existing transaction.
|
|
MySqlHelper ( ) : System.Data | ||
makeCharClassArray ( ) : CharClass[] | ||
needsQuoting ( string s ) : bool |
public static DoubleQuoteString ( string value ) : string | ||
value | string | |
리턴 | string |
public static EscapeString ( string value ) : string | ||
value | string | The string to escape |
리턴 | string |
public static ExecuteDataRow ( string connectionString, string commandText ) : DataRow | ||
connectionString | string | Settings to be used for the connection |
commandText | string | Command to execute |
리턴 | DataRow |
public static ExecuteDataset ( |
||
connection | ||
commandText | string | Command to execute |
리턴 | DataSet |
public static ExecuteDataset ( string connectionString, string commandText ) : DataSet | ||
connectionString | string | Settings to be used for the connection |
commandText | string | Command to execute |
리턴 | DataSet |
public static ExecuteNonQuery ( |
||
connection | ||
commandText | string | SQL command to be executed |
리턴 | int |
public static ExecuteNonQuery ( string connectionString, string commandText ) : int | ||
connectionString | string | |
commandText | string | SQL command to be executed |
리턴 | int |
public static ExecuteReader ( |
||
connection | ||
commandText | string | Command text to use |
리턴 |
public static ExecuteReader ( string connectionString, string commandText ) : |
||
connectionString | string | Settings to use for this command |
commandText | string | Command text to use |
리턴 |
public static ExecuteScalar ( |
||
connection | ||
commandText | string | Command text to use for the command |
리턴 | object |
public static ExecuteScalar ( string connectionString, string commandText ) : object | ||
connectionString | string | Settings to use for the update |
commandText | string | Command text to use for the update |
리턴 | object |
public static UpdateDataSet ( string connectionString, string commandText, DataSet ds, string tablename ) : void | ||
connectionString | string | Settings to use for the update |
commandText | string | Command text to use for the update |
ds | DataSet | |
tablename | string | Tablename in the dataset to update |
리턴 | void |