MySqlConnector


MySqlCommand class

MySqlCommand represents a SQL statement or stored procedure name to execute against a MySQL database.

public sealed class MySqlCommand : DbCommand, ICloneable

Public Members

namedescription
MySqlCommand()Initializes a new instance of the MySqlCommand class.
MySqlCommand(…)Initializes a new instance of the MySqlCommand class, setting CommandText to commandText. (4 constructors)
override CommandText { get; set; }
override CommandTimeout { get; set; }
override CommandType { get; set; }
Connection { get; set; }
override DesignTimeVisible { get; set; }
IsPrepared { get; }
LastInsertedId { get; }Holds the first automatically-generated ID for a value inserted in an AUTO_INCREMENT column in the last statement.
Parameters { get; }The collection of MySqlParameter objects for this command.
Transaction { get; set; }
override UpdatedRowSource { get; set; }
override Cancel()
Clone()
CreateParameter()
override DisposeAsync()
override ExecuteNonQuery()
override ExecuteNonQueryAsync(…)
ExecuteReader()
ExecuteReader(…)
ExecuteReaderAsync(…)(2 methods)
override ExecuteScalar()
override ExecuteScalarAsync(…)
override Prepare()
override PrepareAsync(…)

Protected Members

namedescription
override DbConnection { get; set; }
override DbParameterCollection { get; }
override DbTransaction { get; set; }
override CreateDbParameter()
override Dispose(…)
override ExecuteDbDataReader(…)
override ExecuteDbDataReaderAsync(…)

See Also