DapperMaticMappingOptions
Namespace: MJCZone.DapperMatic.TypeMapping
Assembly: MJCZone.DapperMatic
Summary
Configuration options for DapperMatic type mapping and query compatibility. Controls how type handlers are registered for future DML type mapping features.
public
Contents
Constructors (1) | Methods (4) | Properties (5)
Constructors
DapperMaticMappingOptions
DapperMaticMappingOptions()Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
HandlerPrecedence
Gets or sets how to handle type handler registration when handler already exists. Default: SkipIfExists (don't override user's custom handlers)
Type: TypeHandlerPrecedence?
EnableRecordSupport
Gets or sets a value indicating whether to support modern C# records with parameterized constructors. Default: true (enables record support)
Type: bool?
JsonSerializerOptions
Gets or sets the options used for values stored as JSON: collections, dictionaries, JSON document nodes and objects of the application's own types. Default: JsonSerializer's defaults.
Type: JsonSerializerOptions?
StoreSimpleCollectionsAsJson
Gets or sets a value indicating whether collections of simple values, such as <c>string[]</c>, <c>List<int></c> or <c>HashSet<Guid></c>, are stored as JSON. Default: false.
Type: bool?
ScanEntryAssembly
Gets or sets a value indicating whether to look through the entry assembly, and the application assemblies it references, for model property types that need a handler, such as <c>List<OrderLine></c>. Default: true.
Type: bool?