CqlCommand Class |
Namespace: Cassandra.Data
public sealed class CqlCommand : DbCommand
The CqlCommand type exposes the following members.
Name | Description | |
---|---|---|
CqlCommand | Initializes a new instance of the CqlCommand class |
Name | Description | |
---|---|---|
Cancel | (Overrides DbCommandCancel.) | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
CreateParameter | Creates a new instance of a DbParameter object. (Inherited from DbCommand.) | |
Dispose | Releases all resources used by the Component. (Inherited from Component.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecuteNonQuery | (Overrides DbCommandExecuteNonQuery.) | |
ExecuteNonQueryAsync | An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.Invokes ExecuteNonQueryAsync(CancellationToken) with CancellationToken.None. (Inherited from DbCommand.) | |
ExecuteNonQueryAsync(CancellationToken) | This is the asynchronous version of ExecuteNonQuery. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteNonQuery method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteNonQuery will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete. (Inherited from DbCommand.) | |
ExecuteReader | Executes the CommandText against the Connection, and returns an DbDataReader. (Inherited from DbCommand.) | |
ExecuteReader(CommandBehavior) | Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values. (Inherited from DbCommand.) | |
ExecuteReaderAsync | An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken) with CancellationToken.None. (Inherited from DbCommand.) | |
ExecuteReaderAsync(CancellationToken) | An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader. This method propagates a notification that operations should be canceled.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken). (Inherited from DbCommand.) | |
ExecuteReaderAsync(CommandBehavior) | An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken). (Inherited from DbCommand.) | |
ExecuteReaderAsync(CommandBehavior, CancellationToken) | Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken). (Inherited from DbCommand.) | |
ExecuteScalar | (Overrides DbCommandExecuteScalar.) | |
ExecuteScalarAsync | An asynchronous version of ExecuteScalar, which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored.Invokes ExecuteScalarAsync(CancellationToken) with CancellationToken.None. (Inherited from DbCommand.) | |
ExecuteScalarAsync(CancellationToken) | This is the asynchronous version of ExecuteScalar. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteScalar method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteScalar will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete. (Inherited from DbCommand.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
Prepare | (Overrides DbCommandPrepare.) | |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Name | Description | |
---|---|---|
CommandText | Gets or sets the text command to run against the data source. (Overrides DbCommandCommandText.) | |
CommandTimeout | (Overrides DbCommandCommandTimeout.) | |
CommandType | (Overrides DbCommandCommandType.) | |
Connection | Gets or sets the DbConnection used by this DbCommand. (Inherited from DbCommand.) | |
ConsistencyLevel |
Gets or sets the ConsistencyLevel when executing the current CqlCommand.
| |
Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
DesignTimeVisible | (Overrides DbCommandDesignTimeVisible.) | |
IsPrepared |
Gets whether this command has been prepared.
| |
Parameters |
Gets the CqlParameters.
| |
Site | Gets or sets the ISite of the Component. (Inherited from Component.) | |
Transaction | Gets or sets the DbTransaction within which this DbCommand object executes. (Inherited from DbCommand.) | |
UpdatedRowSource | (Overrides DbCommandUpdatedRowSource.) |
Name | Description | |
---|---|---|
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |