Click or drag to resize
ColumnMap Class
A class for defining how a property or field on a POCO is mapped to a column via a fluent-style interface.
Inheritance Hierarchy
SystemObject
  Cassandra.MappingColumnMap

Namespace: Cassandra.Mapping
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax
C#
public class ColumnMap : IColumnDefinition

The ColumnMap type exposes the following members.

Constructors
  NameDescription
Public methodColumnMap
Creates a new ColumnMap for the property/field specified by the MemberInfo.
Top
Methods
  NameDescription
Public methodAsCounter
Tells the mapper that this is a counter column
Public methodAsFrozen
Tells the mapper that the column type is frozen. Only valid for collections, tuples, and user-defined types. For example: frozen<address>
Public methodAsStatic
Tells the mapper that this is a static column
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIgnore
Tells the mapper to ignore this property/field when mapping.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWithDbType(Type)
Tells the mapper to convert the data in the property or field to the Type specified when doing an INSERT or UPDATE (i.e. the column type in Cassandra). (NOTE: This does NOT affect the Type when fetching/SELECTing data from the database.)
Public methodWithDbTypeT
Tells the mapper to convert the data in the property or field to Type T when doing an INSERT or UPDATE (i.e. the column type in Cassandra). (NOTE: This does NOT affect the Type when fetching/SELECTing data from the database.)
Public methodWithFrozenKey
Tells the mapper that the key of the column type is frozen. Only valid for maps and sets, for example: map<frozen<tuple<text, text>>, uuid> .
Public methodWithFrozenValue
Tells the mapper that the value of the column type is frozen. Only valid for maps and lists, for example: map<uuid, frozen<tuple<text, text>>> .
Public methodWithName
Tells the mapper to use the column name specified when mapping the property/field.
Public methodWithSecondaryIndex
Tells the mapper that this column is defined also as a secondary index
Top
See Also