Rop.Mapper 1.0.23

dotnet add package Rop.Mapper --version 1.0.23
NuGet\Install-Package Rop.Mapper -Version 1.0.23
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rop.Mapper" Version="1.0.23" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rop.Mapper --version 1.0.23
#r "nuget: Rop.Mapper, 1.0.23"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rop.Mapper as a Cake Addin
#addin nuget:?package=Rop.Mapper&version=1.0.23

// Install Rop.Mapper as a Cake Tool
#tool nuget:?package=Rop.Mapper&version=1.0.23

Rop.Mapper

Features

Rop.Mapper is an unobstrusive alternative to AutoMapper. Rop.Mapper allows maps entities using custom Attributes. Rop.Mapper works as Singleton or as Dependency Injection.

To easy use as Singleton, optionaly, mappeables entities can be signaled as IMappeable.

Direct Use

For entities signaled as IMappeable you can use Extensions Methods

public static Dst MapTo<Dst>(this IMappeable item) where Dst : class, new()
public static void MapTo<Dst>(this IMappeable item, Dst destiny) where Dst : class

For entities not signaled, you can use static class DefaultMapper

DefaultMapper.Map<Dst>(object item);
DefaultMapper.Map<Dst>(object item, Dst destiny)

As Dependency Injection

A mapper with custom converters can be instantiated.

Verify

You can verify right conversion rules between entities before use

Mapper.Verify<Src,Dst>();

Maps Attributes

// Universal
[MapsTo(string name)]
[MapsUseNullValue(object value)]
[MapsIgnore()]
[MapsFormat(string format)]
[MapsConversor(string conversor)]
[MapsSeparator(string separator)]
// When destination entity is of certain type
[MapsToIf(string name,Type dst)]
[MapsIgnoreIf(Type dst)]
[MapsFormatIf(string format,Type dst)]
[MapsConversorIf(string conversor,Type dst)]
// When origin entity is if certain type
[MapsFrom(string name,Type src)]
[MapsFromConversor(string conversor,Type src)]

(C)2022 Ramón Ordiales Plaza

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.23 194 4/20/2023
1.0.22 158 4/20/2023
1.0.21 283 1/8/2023
1.0.20 268 12/22/2022
1.0.19 275 12/19/2022
1.0.18 408 9/25/2022
1.0.17 401 9/23/2022
1.0.16 370 9/5/2022
1.0.15 374 9/5/2022
1.0.14 384 9/2/2022
1.0.13 360 9/2/2022
1.0.12 360 9/1/2022
1.0.11 360 9/1/2022
1.0.10 370 8/31/2022
1.0.9 359 8/31/2022
1.0.8 391 8/31/2022
1.0.7 391 8/30/2022
1.0.6 361 8/30/2022
1.0.5 372 8/29/2022
1.0.4 361 8/29/2022
1.0.3 364 8/29/2022
1.0.2 376 8/29/2022
1.0.1 370 8/28/2022