Click or drag to resize
TableTEntity Class
A Linq IQueryProvider that represents a table in Cassandra
Inheritance Hierarchy
SystemObject
  CassandraStatement
    Cassandra.Data.LinqCqlQueryBaseTEntity
      Cassandra.Data.LinqCqlQueryTEntity
        Cassandra.Data.LinqTableTEntity

Namespace: Cassandra.Data.Linq
Assembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax
C#
public class Table<TEntity> : CqlQuery<TEntity>, 
	ITable, IQueryProvider

Type Parameters

TEntity

The TableTEntity type exposes the following members.

Constructors
  NameDescription
Public methodTableTEntity(ISession)
Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using Global configuration.
Public methodTableTEntity(ISession, MappingConfiguration)

Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided.

Fluent configuration or attributes can be used to define mapping information.

Public methodTableTEntity(ISession, MappingConfiguration, String)

Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided.

Use this constructor if you want to use a different table name than the one defined in the mapping configuration.

Fluent configuration or attributes can be used to define mapping information.

Public methodTableTEntity(ISession, MappingConfiguration, String, String)

Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided.

Use this constructor if you want to use a different table and keyspace names than the ones defined in the mapping configuration.

Fluent configuration or attributes can be used to define mapping information.

Top
Methods
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
Properties
  NameDescription
Public propertyKeyspaceName
Gets the name of the keyspace used. If null, it uses the active session keyspace.
Public propertyName
Gets the name of the Table in Cassandra
Top
See Also