Class CqlParameter
Represents a Cql parameter.
Inherited Members
Namespace: Cassandra.Data
Assembly: Cassandra.dll
Syntax
public class CqlParameter : DbParameter, IDbDataParameter, IDataParameter
Constructors
CqlParameter()
Initializes a new instance of the Cql
Declaration
public CqlParameter()
CqlParameter(string)
Initializes a new instance of the Cql
Declaration
public CqlParameter(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name. |
CqlParameter(string, object)
Initializes a new instance of the Cql
Declaration
public CqlParameter(string name, object value)
Parameters
Properties
DbType
Gets or sets the Db
Declaration
public override DbType DbType { get; set; }
Property Value
Type | Description |
---|---|
Db |
Overrides
Direction
Gets or sets a value indicating whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
Declaration
public override ParameterDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
Parameter |
One of the Parameter |
Overrides
Exceptions
Type | Condition |
---|---|
Not |
Cql only supports input parameters |
IsNullable
Gets a value indicating whether the parameter accepts null values.
Declaration
public override bool IsNullable { get; set; }
Property Value
Type | Description |
---|---|
bool | true if null values are accepted; otherwise, false. The default is false. |
Overrides
ParameterName
Gets or sets the name of the IData
Declaration
public override string ParameterName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the IData |
Overrides
Size
The size of the parameter.
Declaration
public override int Size { get; set; }
Property Value
Type | Description |
---|---|
int | Always returns 0. |
Overrides
SourceColumn
Gets or sets the name of the source column that is mapped
to the Data
Declaration
public override string SourceColumn { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the source column that is mapped to the Data |
Overrides
SourceColumnNullMapping
Sets or gets a value which indicates whether the source column is nullable.
This allows Db
Declaration
public override bool SourceColumnNullMapping { get; set; }
Property Value
Type | Description |
---|---|
bool | true if the source column is nullable; false if it is not. |
Overrides
SourceVersion
Gets or sets the Data
Declaration
public override DataRowVersion SourceVersion { get; set; }
Property Value
Type | Description |
---|---|
Data |
One of the Data |
Overrides
Value
Gets or sets the value of the parameter. If no type information was provided earlier, the type of the parameter will be guessed from the value's type.
Declaration
public override object Value { get; set; }
Property Value
Overrides
Methods
ResetDbType()
Resets the DbType property to its original settings.
Declaration
public override void ResetDbType()