MappingConfiguration Class |
Namespace: Cassandra.Mapping
public sealed class MappingConfiguration
The MappingConfiguration type exposes the following members.
Name | Description | |
---|---|---|
MappingConfiguration |
Creates a new instance of MappingConfiguration to store the mapping definitions to be used by the Mapper or Linq components.
|
Name | Description | |
---|---|---|
ConvertTypesUsing |
Configures CqlPoco to use the specified type conversion factory when getting type conversion functions for converting
between data types in the database and your POCO objects.
| |
Define(ITypeDefinition) |
Specifies an individual mapping definition. Usually used along with the MapTPoco class which
allows you to define mappings with a fluent interface. Will throw if a mapping has already been defined for a
given POCO Type.
| |
Define(Mappings) | ||
DefineT |
Specifies a collection of mappings defined in Type T. Type T should be a sub-class of Mappings and
must have a parameter-less constructor.
| |
GetT |
If defined, returns the mapping for POCO type T, otherwise returns null.
| |
SetMaxPreparedStatementsThreshold |
Sets the maximum amount of prepared statements before issuing a logger warning. Defaults to 500.
|
Name | Description | |
---|---|---|
Global |
Global mapping definitions to be reused across all the Application Domain.
| |
MaxPreparedStatementsThreshold |
Gets or sets the maximum amount of prepared statements before issuing a logger warning. Defaults to 500.
|