Click or drag to resize

MappingConfiguration Class

Stores the mapping definitions to be used by the Mapper and Linq components.
Inheritance Hierarchy
SystemObject
  Dse.MappingMappingConfiguration

Namespace:  Dse.Mapping
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public sealed class MappingConfiguration

The MappingConfiguration type exposes the following members.

Constructors
  NameDescription
Public methodMappingConfiguration
Creates a new instance of MappingConfiguration to store the mapping definitions to be used by the Mapper or Linq components.
Top
Properties
  NameDescription
Public propertyStatic memberGlobal
Global mapping definitions to be reused across all the Application Domain.
Public propertyMaxPreparedStatementsThreshold
Gets or sets the maximum amount of prepared statements before issuing a logger warning. Defaults to 500.
Top
Methods
  NameDescription
Public methodConvertTypesUsing
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.
Public methodDefine(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.
Public methodDefine(Mappings)
Specifies collections of Mappings specified. Users should sub-class the Mappings class and use the fluent interface there to define mappings for POCOs.
Public methodDefineT
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.
Public methodGetT
If defined, returns the mapping for POCO type T, otherwise returns null.
Public methodSetMaxPreparedStatementsThreshold
Sets the maximum amount of prepared statements before issuing a logger warning. Defaults to 500.
Top
See Also