Skip to content

MJCZone.DapperMatic.TypeMapping.Handlers

Assembly: MJCZone.DapperMatic

Classes

NameDescription
DictionaryTypeHandler`2Type handler for Dictionary<TKey, TValue> to support dictionary data across all database providers. Serializes Dictionary to JSON string for storage and deserializes JSON back to Dictionary.
JsonDocumentTypeHandlerType handler for JsonDocument to support JSON data across all database providers. Serializes JsonDocument to string for storage and deserializes string back to JsonDocument.
ListTypeHandler`1Type handler for List<T> to support list data across all database providers. Serializes List to JSON array string for storage and deserializes JSON back to List.
SmartArrayTypeHandler`1Smart type handler for T[] arrays with runtime provider detection. PostgreSQL: Uses native array types (text[], int4[], etc.) for 10-50x performance boost. Other providers: Uses JSON array serialization for cross-database compatibility.
SmartIPAddressTypeHandlerSmart type handler for System.Net.IPAddress with provider-specific optimization. PostgreSQL: Native inet type Others: String serialization
SmartMySqlGeometryTypeHandlerSmart type handler for MySqlGeometry with provider-specific optimization. MySQL/MariaDB: Native MySqlGeometry type (MySql.Data or MySqlConnector) Others: WKT (Well-Known Text) string format for consistency with DDL reverse engineering
SmartNpgsqlBoxTypeHandlerSmart type handler for NpgsqlBox with provider-specific optimization. PostgreSQL: Native box type Others: WKT (Well-Known Text) format - "POLYGON((x1 y1, x2 y1, x2 y2, x1 y2, x1 y1))"
SmartNpgsqlCidrTypeHandlerSmart type handler for NpgsqlTypes.NpgsqlCidr with provider-specific optimization. PostgreSQL: Native cidr type Others: String serialization (CIDR notation like "192.168.0.0/24")
SmartNpgsqlCircleTypeHandlerSmart type handler for NpgsqlCircle with provider-specific optimization. PostgreSQL: Native circle type Others: Extended WKT format - "CIRCLE(x y, radius)"
SmartNpgsqlLineTypeHandlerSmart type handler for NpgsqlLine with provider-specific optimization. PostgreSQL: Native line type (infinite line represented by equation Ax + By + C = 0) Others: Extended WKT format - "LINE(a b c)"
SmartNpgsqlLSegTypeHandlerSmart type handler for NpgsqlLSeg (line segment) with provider-specific optimization. PostgreSQL: Native lseg type Others: WKT (Well-Known Text) format - "LINESTRING(x1 y1, x2 y2)"
SmartNpgsqlPathTypeHandlerSmart type handler for NpgsqlPath with provider-specific optimization. PostgreSQL: Native path type Others: WKT (Well-Known Text) format - "LINESTRING(...)" for open paths, "POLYGON((...)))" for closed paths
SmartNpgsqlPointTypeHandlerSmart type handler for NpgsqlPoint with provider-specific optimization. PostgreSQL: Native point type Others: WKT (Well-Known Text) format - "POINT(x y)"
SmartNpgsqlPolygonTypeHandlerSmart type handler for NpgsqlPolygon with provider-specific optimization. PostgreSQL: Native polygon type Others: WKT (Well-Known Text) format - "POLYGON((x1 y1, x2 y2, ..., x1 y1))"
SmartNpgsqlRangeTypeHandler`1Smart type handler for NpgsqlRange<T> with provider-specific optimization. PostgreSQL: Native range types (int4range, int8range, numrange, daterange, tsrange, tstzrange) Others: JSON serialization with bounds and inclusivity metadata
SmartNtsGeometryTypeHandlerSmart type handler for NetTopologySuite geometry types using WKT format for cross-database compatibility. All providers: WKT (Well-Known Text) format via ToString()/Parse
SmartPhysicalAddressTypeHandlerSmart type handler for System.Net.NetworkInformation.PhysicalAddress with provider-specific optimization. PostgreSQL: Native macaddr type Others: String serialization
XDocumentTypeHandlerType handler for XDocument to support XML data across all database providers. Serializes XDocument to string for storage and deserializes string back to XDocument.