Skip to main content

MapperIgnoreSourceAttribute

Namespace: Riok.Mapperly.Abstractions

Ignores a source property from the mapping.

public sealed class MapperIgnoreSourceAttribute : System.Attribute

Inheritance Object → Attribute → MapperIgnoreSourceAttribute
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute, ConditionalAttribute

Properties​

Source​

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

public string Source { get; }

Property Value​

String

TypeId​

public object TypeId { get; }

Property Value​

Object

Constructors​

MapperIgnoreSourceAttribute(String)​

Ignores the specified source property from the mapping.

public MapperIgnoreSourceAttribute(string source)

Parameters​

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