Skip to main content

Class ValueObjectDapper

Namespace: AdCodicem.ValueObjects.Dapper
Assembly: AdCodicem.ValueObjects.Dapper.dll

Registers Dapper type handlers for value objects.

public static class ValueObjectDapper

Inheritance

objectValueObjectDapper

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Remarks

Dapper keeps its handlers in a process-wide table, so this is called once at start-up. Without it, every query touching a value object would need an explicit projection.

Methods

AddValueObjectHandlers(params Assembly[])

Registers a handler for every value object declared in the given assemblies.

[RequiresUnreferencedCode("Closes the generic type handler over each value object type.")]
[RequiresDynamicCode("Closes the generic type handler over each value object type.")]
public static void AddValueObjectHandlers(params Assembly[] assemblies)

Parameters

assemblies Assembly[]

Assemblies declaring the value objects. When none is given, everything already registered is handled.