Table of Contents

Interface IMappingBindingMutator

Namespace
Neo4j.Driver.Mapping
Assembly
Neo4j.Driver.dll

Implemented by attributes that customise how the default mapper reads a property or parameter.

public interface IMappingBindingMutator
Extension Methods

Remarks

The built-in mapping attributes (MappingSourceAttribute, MappingOptionalAttribute, MappingDefaultValueAttribute, etc.) all implement this interface.

You can implement this interface on your own attribute classes to create reusable, composable mapping customisations. When the default mapper processes a property or parameter, it calls Mutate(MappingBinding) on every IMappingBindingMutator attribute it finds, in undefined order, giving each one the opportunity to modify the MappingBinding.

Methods

Mutate(MappingBinding)

Called by the default mapper to allow this mutator to update the mapping configuration for a property or parameter.