Class CqlCommand
Represents an CQL statement to execute against Cassandra
Inheritance
object
MarshalByRefObject
Component
DbCommand
CqlCommand
Implements
IComponent
IDbCommand
IDisposable
Inherited Members
DbCommand.CreateParameter()
DbCommand.ExecuteNonQueryAsync()
DbCommand.ExecuteNonQueryAsync(CancellationToken)
DbCommand.ExecuteReader()
DbCommand.ExecuteReader(CommandBehavior)
DbCommand.ExecuteReaderAsync()
DbCommand.ExecuteReaderAsync(CommandBehavior)
DbCommand.ExecuteReaderAsync(CommandBehavior, CancellationToken)
DbCommand.ExecuteReaderAsync(CancellationToken)
DbCommand.ExecuteScalarAsync()
DbCommand.ExecuteScalarAsync(CancellationToken)
DbCommand.Connection
DbCommand.Transaction
Component.Dispose()
Component.ToString()
Component.Container
Component.Site
Component.Disposed
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Cassandra.Data
Assembly: Cassandra.dll
Syntax
public sealed class CqlCommand : DbCommand, IComponent, IDbCommand, IDisposable
Properties
CommandText
Declaration
public override string CommandText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
System.Data.Common.DbCommand.CommandText
CommandTimeout
Declaration
public override int CommandTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
System.Data.Common.DbCommand.CommandTimeout
CommandType
Declaration
public override CommandType CommandType { get; set; }
Property Value
| Type | Description |
|---|---|
| CommandType |
Overrides
System.Data.Common.DbCommand.CommandType
ConsistencyLevel
Gets or sets the ConsistencyLevel when executing the current CqlCommand.
Declaration
public ConsistencyLevel ConsistencyLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsistencyLevel |
DbConnection
Declaration
protected override DbConnection DbConnection { get; set; }
Property Value
| Type | Description |
|---|---|
| DbConnection |
Overrides
System.Data.Common.DbCommand.DbConnection
DbParameterCollection
Declaration
protected override DbParameterCollection DbParameterCollection { get; }
Property Value
| Type | Description |
|---|---|
| DbParameterCollection |
Overrides
System.Data.Common.DbCommand.DbParameterCollection
DbTransaction
Declaration
protected override DbTransaction DbTransaction { get; set; }
Property Value
| Type | Description |
|---|---|
| DbTransaction |
Overrides
System.Data.Common.DbCommand.DbTransaction
DesignTimeVisible
Declaration
public override bool DesignTimeVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
System.Data.Common.DbCommand.DesignTimeVisible
IsPrepared
Gets whether this command has been prepared.
Declaration
public bool IsPrepared { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Parameters
Gets the CqlParameters.
Declaration
public CqlParameterCollection Parameters { get; }
Property Value
| Type | Description |
|---|---|
| CqlParameterCollection |
UpdatedRowSource
Declaration
public override UpdateRowSource UpdatedRowSource { get; set; }
Property Value
| Type | Description |
|---|---|
| UpdateRowSource |
Overrides
System.Data.Common.DbCommand.UpdatedRowSource
Methods
Cancel()
Declaration
public override void Cancel()
Overrides
System.Data.Common.DbCommand.Cancel()
CreateDbParameter()
Declaration
protected override DbParameter CreateDbParameter()
Returns
| Type | Description |
|---|---|
| DbParameter |
Overrides
System.Data.Common.DbCommand.CreateDbParameter()
ExecuteDbDataReader(CommandBehavior)
Declaration
protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBehavior | behavior |
Returns
| Type | Description |
|---|---|
| DbDataReader |
Overrides
System.Data.Common.DbCommand.ExecuteDbDataReader(System.Data.CommandBehavior)
ExecuteNonQuery()
Declaration
public override int ExecuteNonQuery()
Returns
| Type | Description |
|---|---|
| int |
Overrides
System.Data.Common.DbCommand.ExecuteNonQuery()
ExecuteScalar()
Declaration
public override object ExecuteScalar()
Returns
| Type | Description |
|---|---|
| object |
Overrides
System.Data.Common.DbCommand.ExecuteScalar()
Prepare()
Declaration
public override void Prepare()
Overrides
System.Data.Common.DbCommand.Prepare()
Implements
System.ComponentModel.IComponent
System.Data.IDbCommand
System.IDisposable