Click or drag to resize
CqlCommand Class
Represents an CQL statement to execute against Cassandra
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.Data.CommonDbCommand
        Cassandra.DataCqlCommand

Namespace: Cassandra.Data
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax
C#
public sealed class CqlCommand : DbCommand

The CqlCommand type exposes the following members.

Constructors
  NameDescription
Public methodCqlCommand
Initializes a new instance of the CqlCommand class
Top
Methods
  NameDescription
Public methodCancel (Overrides DbCommandCancel.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodCreateParameter
Creates a new instance of a DbParameter object.
(Inherited from DbCommand.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteNonQuery (Overrides DbCommandExecuteNonQuery.)
Public methodExecuteNonQueryAsync
An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.Invokes ExecuteNonQueryAsync(CancellationToken) with CancellationToken.None.
(Inherited from DbCommand.)
Public methodExecuteNonQueryAsync(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.)
Public methodExecuteReader
Executes the CommandText against the Connection, and returns an DbDataReader.
(Inherited from DbCommand.)
Public methodExecuteReader(CommandBehavior)
Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.
(Inherited from DbCommand.)
Public methodExecuteReaderAsync
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.)
Public methodExecuteReaderAsync(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.)
Public methodExecuteReaderAsync(CommandBehavior)
An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Inherited from DbCommand.)
Public methodExecuteReaderAsync(CommandBehavior, CancellationToken)
Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Inherited from DbCommand.)
Public methodExecuteScalar (Overrides DbCommandExecuteScalar.)
Public methodExecuteScalarAsync
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.)
Public methodExecuteScalarAsync(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.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodPrepare (Overrides DbCommandPrepare.)
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Properties
  NameDescription
Public propertyCommandText
Gets or sets the text command to run against the data source.
(Overrides DbCommandCommandText.)
Public propertyCommandTimeout (Overrides DbCommandCommandTimeout.)
Public propertyCommandType (Overrides DbCommandCommandType.)
Public propertyConnection
Gets or sets the DbConnection used by this DbCommand.
(Inherited from DbCommand.)
Public propertyConsistencyLevel
Gets or sets the ConsistencyLevel when executing the current CqlCommand.
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyDesignTimeVisible (Overrides DbCommandDesignTimeVisible.)
Public propertyIsPrepared
Gets whether this command has been prepared.
Public propertyParameters
Gets the CqlParameters.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyTransaction
Gets or sets the DbTransaction within which this DbCommand object executes.
(Inherited from DbCommand.)
Public propertyUpdatedRowSource (Overrides DbCommandUpdatedRowSource.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Top
See Also