Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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 | |
return | string |
public static EscapeString ( string value ) : string | ||
value | string | The string to escape |
return | string |
public static ExecuteDataRow ( string connectionString, string commandText ) : DataRow | ||
connectionString | string | Settings to be used for the connection |
commandText | string | Command to execute |
return | DataRow |
public static ExecuteDataset ( |
||
connection | ||
commandText | string | Command to execute |
return | DataSet |
public static ExecuteDataset ( string connectionString, string commandText ) : DataSet | ||
connectionString | string | Settings to be used for the connection |
commandText | string | Command to execute |
return | DataSet |
public static ExecuteNonQuery ( |
||
connection | ||
commandText | string | SQL command to be executed |
return | int |
public static ExecuteNonQuery ( string connectionString, string commandText ) : int | ||
connectionString | string | |
commandText | string | SQL command to be executed |
return | int |
public static ExecuteReader ( |
||
connection | ||
commandText | string | Command text to use |
return |
public static ExecuteReader ( string connectionString, string commandText ) : |
||
connectionString | string | Settings to use for this command |
commandText | string | Command text to use |
return |
public static ExecuteScalar ( |
||
connection | ||
commandText | string | Command text to use for the command |
return | 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 |
return | 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 |
return | void |