Skip to main content

RequiredMappingStrategy

Namespace: Riok.Mapperly.Abstractions

Defines the strategy used when emitting warnings for unmapped members.

public enum RequiredMappingStrategy

Inheritance ObjectValueTypeEnumRequiredMappingStrategy
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Attributes FlagsAttribute

Fields

NameValueDescription
None0Warnings are not emitted for unmapped source or target members.
Both-1Warnings are emitted for both unmapped source and target members.
Source1Warnings are emitted for unmapped source members but not for target members.
Target2Warnings are emitted for unmapped target members but not for source members.