|
.NET Framework Beta 2 |
|||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Represents a mySQL statement to execute against a SQL Server database.
Constructor Summary | |
---|---|
MySqlCommand() Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class. |
|
MySqlCommand(string cmdText) Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class with the text of the query. |
|
MySqlCommand(string cmdText, MySqlSharp.Provider.MySqlConnection connection) Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class with the text of the query and a MySqlSharp.Provider.MySqlConnection. |
Property Summary | |
---|---|
string |
CommandText
Gets or sets the SQL statement to execute at the data source. |
int |
CommandTimeout
Gets or sets the wait time before terminating the attempt to execute a command and generating an error. |
System.Data.CommandType |
CommandType
Gets or sets a value indicating how the MySqlSharp.Provider.MySqlCommand.CommandText property is to be interpreted. |
MySqlSharp.Provider.MySqlConnection |
Connection
Gets or sets the MySqlSharp.Provider.MySqlConnection used by this instance of the MySqlSharp.Provider.MySqlCommand. |
MySqlSharp.Provider.MySqlParameterCollection |
Parameters
Gets the MySqlSharp.Provider.MySqlParameter. |
System.Data.UpdateRowSource |
UpdatedRowSource
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Method Summary | |
---|---|
void |
Cancel() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
System.Data.IDbDataParameter |
CreateParameter() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
void |
Dispose() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
int |
ExecuteNonQuery() Executes a mySQL statement against the Connection and returns the number of rows affected. |
System.Data.IDataReader |
ExecuteReader(System.Data.CommandBehavior cb) This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
System.Data.IDataReader |
ExecuteReader() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
MySqlSharp.Provider.MySqlDataReader |
ExecuteReader() Sends the MySqlSharp.Provider.MySqlCommand.CommandText to the Connection and builds a MySqlSharp.Provider.MySqlDataReader. |
MySqlSharp.Provider.MySqlDataReader |
ExecuteReader(System.Data.CommandBehavior cb) Sends the MySqlSharp.Provider.MySqlCommand.CommandText to the Connection, and builds a MySqlSharp.Provider.MySqlDataReader using one of the System.Data.CommandBehavior values. |
object |
ExecuteScalar() Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored. |
void |
Prepare() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Constructor Detail |
---|
public MySqlCommand()
Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class.
public MySqlCommand(string cmdText)
Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class with the text of the query.
Parameters:
cmdText
- The text of the query.public MySqlCommand(string cmdText, MySqlSharp.Provider.MySqlConnection connection)
Initializes a new instance of the MySqlSharp.Provider.MySqlCommand class with the text of the query and a MySqlSharp.Provider.MySqlConnection.
Parameters:
cmdText
- The text of the query.connection
- A MySqlSharp.Provider.MySqlConnection that represents the connection to a mySQL Server.Property Detail |
---|
public string CommandText
Gets or sets the SQL statement to execute at the data source.
Value:
public int CommandTimeout
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
Value:
System.ArgumentException
- The property value assigned is less than 0.public System.Data.CommandType CommandType
Gets or sets a value indicating how the MySqlSharp.Provider.MySqlCommand.CommandText property is to be interpreted.
Value:
System.NotSupportedException
- Stored procedures are not supported in mySQL.public MySqlSharp.Provider.MySqlConnection Connection
Gets or sets the MySqlSharp.Provider.MySqlConnection used by this instance of the MySqlSharp.Provider.MySqlCommand.
Value:
public MySqlSharp.Provider.MySqlParameterCollection Parameters
Gets the MySqlSharp.Provider.MySqlParameter.
Value:
public System.Data.UpdateRowSource UpdatedRowSource
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Method Detail |
---|
public void Cancel()
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
private System.Data.IDbDataParameter CreateParameter()
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
public void Dispose()
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
public int ExecuteNonQuery()
Executes a mySQL statement against the Connection and returns the number of rows affected.
You can't execute any command returning results here.
Returns:private System.Data.IDataReader ExecuteReader(System.Data.CommandBehavior cb)
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
private System.Data.IDataReader ExecuteReader()
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
public MySqlSharp.Provider.MySqlDataReader ExecuteReader()
Sends the MySqlSharp.Provider.MySqlCommand.CommandText to the Connection and builds a MySqlSharp.Provider.MySqlDataReader.
Returns:
public MySqlSharp.Provider.MySqlDataReader ExecuteReader(System.Data.CommandBehavior cb)
Sends the MySqlSharp.Provider.MySqlCommand.CommandText to the Connection, and builds a MySqlSharp.Provider.MySqlDataReader using one of the System.Data.CommandBehavior values.
If you use CommandBehavior.SingleResult, onlmy the first command can return values.
Parameters:cb
- One of the System.Data.CommandBehavior values.public object ExecuteScalar()
Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.
Returns:
public void Prepare()
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
|
.NET Framework Beta 2 |
|||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |