TableTEntity Class |
Namespace: Dse.Data.Linq
public class Table<TEntity> : CqlQuery<TEntity>, ITable, IQueryProvider
The TableTEntity type exposes the following members.
Name | Description | |
---|---|---|
TableTEntity(ISession) |
Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using Global configuration.
| |
TableTEntity(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. | |
TableTEntity(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. | |
TableTEntity(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. |
Name | Description | |
---|---|---|
KeyspaceName |
Gets the name of the keyspace used. If null, it uses the active session keyspace.
| |
Name |
Gets the name of the Table in Cassandra
|
Name | Description | |
---|---|---|
Create | ||
CreateIfNotExists | ||
CreateQueryTElement |
Creates a CqlQueryTEntity | |
GetEntityType | ||
GetSession | ||
GetTableType | ||
Insert(TEntity) |
Returns a new CqlInsertTEntity command. Use
Execute method to execute the query.
| |
Insert(TEntity, Boolean) |
Returns a new CqlInsertTEntity command. Use
Execute method to execute the query.
|
Name | Description | |
---|---|---|
AllowFilteringTEntity |
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.) | |
CountTEntity |
Returns the number of rows matching the query.
To execute this CqlScalar use Execute() method.
(Defined by CqlQueryExtensions.) | |
DeleteTEntity |
Returns a representation of a DELETE cql statement
(Defined by CqlQueryExtensions.) | |
DeleteIfTEntity |
Returns a representation of a DELETE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.) | |
FirstTEntity | Overloaded.
Returns a CqlQuery which after execution will return the first element in a sequence.
To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.) | |
FirstTSource(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.) | |
FirstOrDefaultTEntity | Overloaded.
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.) | |
FirstOrDefaultTSource(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.) | |
OrderByTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
OrderByDescendingTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
SelectTEntity, TResult |
Projects each element of a sequence into a new form.
(Defined by CqlQueryExtensions.) | |
TakeTEntity |
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.) | |
ThenByTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
ThenByDescendingTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in descending order according to a key.
(Defined by CqlQueryExtensions.) | |
UpdateTEntity |
Returns a representation of a UPDATE cql statement
(Defined by CqlQueryExtensions.) | |
UpdateIfTEntity |
Returns a representation of a UPDATE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.) | |
UpdateIfExistsTEntity |
Returns a representation of a UPDATE ... IF EXISTS cql statement, for Lightweight Transactions support.
(Defined by CqlQueryExtensions.) | |
WhereTEntity |
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.) |