Table of Contents

Class TypeMappingConfigurationModule

Namespace
LfrlAnvil.Mapping
Assembly
LfrlAnvil.Mapping.dll

Represents a collection of ITypeMappingConfiguration instances.

public class TypeMappingConfigurationModule : ITypeMappingConfiguration
Inheritance
TypeMappingConfigurationModule
Implements
Inherited Members

Constructors

TypeMappingConfigurationModule()

Creates a new TypeMappingConfigurationModule instance without any sub-modules.

public TypeMappingConfigurationModule()

Properties

Parent

Parent of this module.

public TypeMappingConfigurationModule? Parent { get; }

Property Value

TypeMappingConfigurationModule

Methods

Configure(ITypeMappingConfiguration)

Adds configuration to this module.

public TypeMappingConfigurationModule Configure(ITypeMappingConfiguration configuration)

Parameters

configuration ITypeMappingConfiguration

Configuration instance to add.

Returns

TypeMappingConfigurationModule

this.

Exceptions

InvalidTypeMappingSubmoduleConfigurationException

When configuration is of TypeMappingConfigurationModule type and it has already been assigned to another module or a cyclic reference between modules has been detected.

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.

GetSubmodules()

Returns all sub-modules of this module.

[Pure]
public IEnumerable<TypeMappingConfigurationModule> GetSubmodules()

Returns

IEnumerable<TypeMappingConfigurationModule>

All TypeMappingConfigurationModule instances whose Parent is this module.