MapPropertyAttribute
Namespace: Riok.Mapperly.Abstractions
Specifies options for a property mapping.
public sealed class MapPropertyAttribute : System.Attribute
Inheritance Object → Attribute → MapPropertyAttribute
Properties
Source
Gets the name of the source property.
public IReadOnlyCollection<string> Source { get; }
Property Value
SourceFullName
Gets the full name of the source property path.
public string SourceFullName { get; }
Property Value
Target
Gets the name of the target property.
public IReadOnlyCollection<string> Target { get; }
Property Value
TargetFullName
Gets the full name of the target property path.
public string TargetFullName { get; }
Property Value
TypeId
public object TypeId { get; }
Property Value
Constructors
MapPropertyAttribute(String, String)
Maps a specified source property to the specified target property.
public MapPropertyAttribute(string source, string target)
Parameters
source
String
The name of the source property. The use of nameof()
is encouraged. A path can be specified by joining property names with a '.'.
target
String
The name of the target property. The use of nameof()
is encouraged. A path can be specified by joining property names with a '.'.
MapPropertyAttribute(String[], String[])
Maps a specified source property to the specified target property.
public MapPropertyAttribute(String[] source, String[] target)
Parameters
source
String[]
The path of the source property. The use of nameof()
is encouraged.
target
String[]
The path of the target property. The use of nameof()
is encouraged.