Table of Contents

Class DestinationTypeMappingConfiguration<TDestination>

Namespace
LfrlAnvil.Mapping
Assembly
LfrlAnvil.Mapping.dll

Represents a configuration of possibly multiple type mapping definitions to a single TDestination type.

public class DestinationTypeMappingConfiguration<TDestination> : ITypeMappingConfiguration

Type Parameters

TDestination

Destination type.

Inheritance
DestinationTypeMappingConfiguration<TDestination>
Implements
Inherited Members

Constructors

DestinationTypeMappingConfiguration()

Creates a new DestinationTypeMappingConfiguration<TDestination> instance without any mapping definitions.

public DestinationTypeMappingConfiguration()

Properties

DestinationType

Destination type.

public Type DestinationType { get; }

Property Value

Type

Methods

Configure<TSource>(Func<TSource, ITypeMapper, TDestination>)

Sets a TSource => TDestination mapping definition.

public DestinationTypeMappingConfiguration<TDestination> Configure<TSource>(Func<TSource, ITypeMapper, TDestination> mapping)

Parameters

mapping Func<TSource, ITypeMapper, TDestination>

TSource => TDestination mapping definition.

Returns

DestinationTypeMappingConfiguration<TDestination>

this.

Type Parameters

TSource

Source type.

GetMappingStores()

Returns all type mapping definitions created by this configuration.

[Pure]
public IEnumerable<KeyValuePair<TypeMappingKey, TypeMappingStore>> GetMappingStores()

Returns

IEnumerable<KeyValuePair<TypeMappingKey, TypeMappingStore>>

All type mapping definitions created by this configuration.