Click or drag to resize

MapTPoco Class

A class for defining how to map a POCO via a fluent-style interface. The mapping for Type T should be defined in the constructor of the sub class.
Inheritance Hierarchy
SystemObject
  Cassandra.MappingMapTPoco

Namespace:  Cassandra.Mapping
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
public class Map<TPoco> : ITypeDefinition

Type Parameters

TPoco

The MapTPoco type exposes the following members.

Constructors
Methods
  NameDescription
Public methodCaseSensitive
Specifies that when generating queries, the table and column names identifiers must be quoted. Defaults to false.
Public methodClusteringKey(ExpressionFuncTPoco, Object)
Specifies a Clustering key with unspecified order
Public methodClusteringKey(String)
Specifies the clustering key column names for the table using the order provided.
Public methodClusteringKey(TupleString, SortOrder)
Specifies the Clustering keys with the corresponding clustering order
Public methodClusteringKey(ExpressionFuncTPoco, Object, SortOrder)
Specifies a Clustering key with its clustering order
Public methodColumnTProp(ExpressionFuncTPoco, TProp)
Sets the mapping for the expression using the default options.
Public methodColumnTProp(ExpressionFuncTPoco, TProp, ActionColumnMap)
Defines options for mapping the column specified.
Public methodCompactStorage
Specifies that the table is defined as COMPACT STORAGE
Public methodExplicitColumns
Specifies that when mapping, we should only map columns that are explicitly defined here. Use the Column method to define columns.
Public methodKeyspaceName
Specifies that when mapping, the table name should include the keyspace. Use only if the table you are mapping is in a different keyspace than the current ISession.
Public methodPartitionKey(ExpressionFuncTPoco, Object)
Specifies the properties/fields on the POCO whose column names are the partition key for the table.
Public methodPartitionKey(String)
Specifies the partition key column names for the table using the order provided.
Public methodTableName
Specifies what table to map the POCO to.
Top
See Also