Riok.Mapperly by Mapperly Contributors, Lars Tönz, Manuel Allenspach

<PackageReference Include="Riok.Mapperly" Version="3.4.0-next.2" />

 MapPropertyAttribute

public sealed class MapPropertyAttribute : Attribute
Specifies options for a property mapping.
public string FormatProvider { get; set; }

Gets or sets the name of a format provider field or property to be used for conversions accepting a format provider (implementing IFormattable). If null the default format provider (annotated with FormatProviderAttribute and Defaulttrue) or none (if no default format provider is provided) is used.

public IReadOnlyCollection<string> Source { get; }

Gets the name of the source property.

public string SourceFullName { get; }

Gets the full name of the source property path.

public string StringFormat { get; set; }

Gets or sets the format of the ToString conversion (implementing IFormattable).

public IReadOnlyCollection<string> Target { get; }

Gets the name of the target property.

public string TargetFullName { get; }

Gets the full name of the target property path.

public MapPropertyAttribute(string source, string target)

Maps a specified source property to the specified target property.

public MapPropertyAttribute(string[] source, string[] target)

Maps a specified source property to the specified target property.