Table of Contents

Class ForgeMapDefaultsAttribute

Namespace
ForgeMap
Assembly
ForgeMap.Abstractions.dll

Assembly-level defaults for all forgers in the assembly.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public sealed class ForgeMapDefaultsAttribute : Attribute
Inheritance
object
Attribute
ForgeMapDefaultsAttribute

Properties

AutoWireNestedMappings

Gets or sets whether auto-discovery of nested forge methods is enabled by default. Default is true.

public bool AutoWireNestedMappings { get; set; }

Property Value

bool

ConstructorPreference

Assembly-level default for constructor preference. Default is Auto.

public ConstructorPreference ConstructorPreference { get; set; }

Property Value

ConstructorPreference

GenerateCollectionMappings

Gets or sets whether to automatically generate collection mapping methods. Default is true.

public bool GenerateCollectionMappings { get; set; }

Property Value

bool

NullHandling

Gets or sets the default null handling mode for all forgers in the assembly.

public NullHandling NullHandling { get; set; }

Property Value

NullHandling

NullPropertyHandling

Gets or sets the default null property handling mode for all forgers in the assembly. Default is NullForgiving.

public NullPropertyHandling NullPropertyHandling { get; set; }

Property Value

NullPropertyHandling

PropertyMatching

Gets or sets the default property matching mode for all forgers in the assembly.

public PropertyMatching PropertyMatching { get; set; }

Property Value

PropertyMatching

StringToEnum

Assembly-level default for string-to-enum conversion. Default is Parse.

public StringToEnumConversion StringToEnum { get; set; }

Property Value

StringToEnumConversion