Class CqlQueryBase<TEntity>
Inheritance
System.Object
CqlQueryBase<TEntity>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Dse.dll
Syntax
public abstract class CqlQueryBase<TEntity> : Statement, IInternalStatement, IStatement
Type Parameters
Properties
ElementType
Declaration
public Type ElementType { get; }
Property Value
Type |
Description |
System.Type |
|
Expression
Declaration
public Expression Expression { get; }
Property Value
Type |
Description |
System.Linq.Expressions.Expression |
|
Keyspace
Declaration
public override string Keyspace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
QueryAbortTimeout
Declaration
protected int QueryAbortTimeout { get; }
Property Value
Type |
Description |
System.Int32 |
|
QueryTrace
After being executed, it retrieves the trace of the CQL query.
Use EnableTracing(Boolean) to enable tracing.
Note that enabling query trace introduces server-side overhead by storing request information, so it's
recommended that you only enable query tracing when trying to identify possible issues / debugging.
Declaration
public QueryTrace QueryTrace { get; protected set; }
Property Value
RoutingKey
Declaration
public override RoutingKey RoutingKey { get; }
Property Value
Overrides
Methods
BeginExecute(AsyncCallback, Object)
Declaration
public IAsyncResult BeginExecute(AsyncCallback callback, object state)
Parameters
Type |
Name |
Description |
System.AsyncCallback |
callback |
|
System.Object |
state |
|
Returns
Type |
Description |
System.IAsyncResult |
|
EndExecute(IAsyncResult)
Declaration
public IEnumerable<TEntity> EndExecute(IAsyncResult ar)
Parameters
Type |
Name |
Description |
System.IAsyncResult |
ar |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
|
Execute()
Evaluates the Linq query, executes the cql statement and adapts the results.
Declaration
public IEnumerable<TEntity> Execute()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
|
Execute(String)
Evaluates the Linq query, executes the cql statement with the provided execution profile and adapts the results.
Declaration
public IEnumerable<TEntity> Execute(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
|
ExecuteAsync()
Evaluates the Linq query, executes asynchronously the cql statement and adapts the results.
Declaration
public Task<IEnumerable<TEntity>> ExecuteAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TEntity>> |
|
ExecuteAsync(String)
Evaluates the Linq query, executes asynchronously the cql statement with the provided execution profile
and adapts the results.
Declaration
public Task<IEnumerable<TEntity>> ExecuteAsync(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TEntity>> |
|
GetCql(out Object[])
Declaration
protected abstract string GetCql(out object[] values)
Parameters
Type |
Name |
Description |
System.Object[] |
values |
|
Returns
Type |
Description |
System.String |
|
GetTable()
Declaration
Returns
InternalExecuteWithProfileAsync(String, String, Object[])
Declaration
protected Task<RowSet> InternalExecuteWithProfileAsync(string executionProfile, string cqlQuery, object[] values)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
System.String |
cqlQuery |
|
System.Object[] |
values |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<RowSet> |
|
Implements