Rop.Mapper 1.0.15

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rop.Mapper --version 1.0.15                
NuGet\Install-Package Rop.Mapper -Version 1.0.15                
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.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rop.Mapper --version 1.0.15                
#r "nuget: Rop.Mapper, 1.0.15"                
#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.15

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

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.
  • net6.0

    • No dependencies.

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 243 4/20/2023
1.0.22 184 4/20/2023
1.0.21 317 1/8/2023
1.0.20 305 12/22/2022
1.0.19 314 12/19/2022
1.0.18 441 9/25/2022
1.0.17 430 9/23/2022
1.0.16 395 9/5/2022
1.0.15 410 9/5/2022
1.0.14 412 9/2/2022
1.0.13 388 9/2/2022
1.0.12 392 9/1/2022
1.0.11 387 9/1/2022
1.0.10 406 8/31/2022
1.0.9 388 8/31/2022
1.0.8 426 8/31/2022
1.0.7 420 8/30/2022
1.0.6 396 8/30/2022
1.0.5 402 8/29/2022
1.0.4 389 8/29/2022
1.0.3 396 8/29/2022
1.0.2 406 8/29/2022
1.0.1 393 8/28/2022