Click or drag to resize

TableTEntity Methods

The TableTEntity generic type exposes the following members.

Methods
  NameDescription
Public methodBeginExecute (Inherited from CqlQueryBaseTEntity.)
Public methodCreate
Public methodCreateIfNotExists
Public methodCreateQueryTElement
Public methodDisableTracing
Disable tracing for the statement.
(Inherited from Statement.)
Public methodEnableTracing
Enables tracing for the statement
(Inherited from Statement.)
Public methodEndExecute (Inherited from CqlQueryBaseTEntity.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Evaluates the Linq query, executes the cql statement and adapts the results.
(Inherited from CqlQueryBaseTEntity.)
Public methodExecuteAsync
Evaluates the Linq query, executes asynchronously the cql statement and adapts the results.
(Inherited from CqlQueryBaseTEntity.)
Public methodExecutePaged
Executes the query and returns a page of results
(Inherited from CqlQueryTEntity.)
Public methodExecutePagedAsync
Asynchronously executes the query and returns a task of a page of results
(Inherited from CqlQueryTEntity.)
Public methodExecutingAs
Allows this statement to be executed as a different user/role than the one currently authenticated (a.k.a. proxy execution).
(Inherited from Statement.)
Public methodGetEntityType
Public methodGetEnumerator (Inherited from CqlQueryTEntity.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSession
Public methodGetTable (Inherited from CqlQueryBaseTEntity.)
Public methodGetTableType
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(TEntity)
Public methodInsert(TEntity, Boolean)
Public methodSetAutoPage
Sets the paging behavior. When set to true (default), the RowSet returned when executing this IStatement will automatically fetch the following result pages. When false, the RowSet returned will only contain the rows contained in the result page and will not fetch additional pages.
(Inherited from Statement.)
Public methodSetConsistencyLevel (Inherited from CqlQueryTEntity.)
Public methodSetHost
Sets the Host that should handle this query.

In the general case, use of this method is heavily discouraged and should only be used in the following cases:

  • Querying node-local tables, such as tables in the system and system_views keyspaces.
  • Applying a series of schema changes, where it may be advantageous to execute schema changes in sequence on the same node.

Configuring a specific host causes the configured ILoadBalancingPolicy to be completely bypassed. However, if the load balancing policy dictates that the host is at distance Ignored or there is no active connectivity to the host, the request will fail with a NoHostAvailableException.

(Inherited from Statement.)
Public methodSetIdempotence
Sets whether this statement is idempotent.

Idempotence of the statement plays a role in ISpeculativeExecutionPolicy. If a statement is not idempotent, the driver will not schedule speculative executions for it.

(Inherited from Statement.)
Public methodSetOutgoingPayload
Sets a custom outgoing payload for this statement. Each time this statement is executed, this payload will be included in the request. Once it is set using this method, the payload should not be modified.
(Inherited from Statement.)
Public methodSetPageSize
Sets the page size for this query. The page size controls how much resulting rows will be retrieved simultaneously (the goal being to avoid loading too much results in memory for queries yielding large results). Please note that while value as low as 1 can be used, it is highly discouraged to use such a low value in practice as it will yield very poor performance. If in doubt, leaving the default is probably a good idea.
(Inherited from CqlQueryTEntity.)
Public methodSetPagingState
Sets the paging state, a token representing the current page state of query used to continue paging by retrieving the following result page. Setting the paging state will disable automatic paging.
(Inherited from CqlQueryTEntity.)
Public methodSetReadTimeoutMillis
Overrides the default per-host read timeout ReadTimeoutMillis for this statement.
(Inherited from Statement.)
Public methodSetRetryPolicy
Sets the retry policy to use for this query.

Calling this method is only required when you want to override the default RetryPolicy set in the cluster configuration for this request.

Use a IExtendedRetryPolicy implementation to cover all error scenarios.

(Inherited from Statement.)
Public methodSetSerialConsistencyLevel (Inherited from CqlQueryTEntity.)
Public methodSetTimestamp
Sets the timestamp associated with this statement execution. If provided, this will replace the server side assigned timestamp as default timestamp. Note that a timestamp in the query itself will still override this timestamp.
(Inherited from Statement.)
Public methodToString
Generates and returns cql query for this instance
(Inherited from CqlQueryTEntity.)
Top
Extension Methods
  NameDescription
Public Extension MethodAllowFilteringTEntity
The ALLOW FILTERING option allows to explicitly allow queries that require filtering. Please note that a query using ALLOW FILTERING may thus have unpredictable performance (for the definition above), i.e. even a query that selects a handful of records may exhibit performance that depends on the total amount of data stored in the cluster.
(Defined by CqlQueryExtensions.)
Public Extension MethodCountTEntity
Returns the number of rows matching the query. To execute this CqlScalar use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodDeleteTEntity
Returns a representation of a DELETE cql statement
(Defined by CqlQueryExtensions.)
Public Extension MethodDeleteIfTEntity
Returns a representation of a DELETE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstTEntityOverloaded.
Returns a CqlQuery which after execution will return the first element in a sequence. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstTSource(ExpressionFuncTSource, Boolean)Overloaded.
Returns a CqlQuery which after execution returns the first element in a sequence that satisfies a specified condition. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstOrDefaultTEntityOverloaded.
Returns a CqlQuery which after execution will return the first element of a sequence, or a default value if the sequence contains no elements. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstOrDefaultTSource(ExpressionFuncTSource, Boolean)Overloaded.
Returns a CqlQuery which after execution will return the first element of the sequence that satisfies a condition or a default value if no such element is found. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodOrderByTEntity, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodOrderByDescendingTEntity, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodSelectTEntity, TResult
Projects each element of a sequence into a new form.
(Defined by CqlQueryExtensions.)
Public Extension MethodTakeTEntity
Returns a CqlQuery which after execution will return IEnumerable<TSource> with specified number of contiguous elements from the start of a sequence. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodThenByTEntity, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodThenByDescendingTEntity, TKey
Sorts the elements, which are returned from CqlQuery, in descending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateTEntity
Returns a representation of a UPDATE cql statement
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateIfTEntity
Returns a representation of a UPDATE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateIfExistsTEntity
Returns a representation of a UPDATE ... IF EXISTS cql statement, for Lightweight Transactions support.
(Defined by CqlQueryExtensions.)
Public Extension MethodWhereTEntity
Returns a CqlQuery which after execution returns filtered sequence of values based on a predicate. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Top
See Also