Skip to main content

MapperIgnoreTargetAttribute

Namespace: Riok.Mapperly.Abstractions

Ignores a target property from the mapping.

public sealed class MapperIgnoreTargetAttribute : System.Attribute

Inheritance ObjectAttributeMapperIgnoreTargetAttribute
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute, ConditionalAttribute

Properties

Target

Gets the target property name which should be ignored from the mapping.

public string Target { get; }

Property Value

String

TypeId

public object TypeId { get; }

Property Value

Object

Constructors

MapperIgnoreTargetAttribute(String)

Ignores the specified target property from the mapping.

public MapperIgnoreTargetAttribute(string target)

Parameters

target String
The name of the target property to ignore. The use of nameof() is encouraged.