AMapper 1.0.7

.NET Framework 4.0
dotnet add package AMapper --version 1.0.7
NuGet\Install-Package AMapper -Version 1.0.7
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="AMapper" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AMapper --version 1.0.7
#r "nuget: AMapper, 1.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AMapper as a Cake Addin
#addin nuget:?package=AMapper&version=1.0.7

// Install AMapper as a Cake Tool
#tool nuget:?package=AMapper&version=1.0.7

AMapper

AMapper是一个高性能实体转换组件,默认采用忽略大小写的属性名作为映射条件,支持基本类型间的自动转换。对于复杂的集合属性也能很好的支持。在千万级转换测试中,其效率已超过绝大多数Mapper组件。

使用方法

  1. 引用AMapper.dll或者使用nuget安装
    Install-Package AMapper
    
  2. 创建类映射关系
var _mapFunc = Map.Create<AClass, BClass>().Compile();
  1. 使用生成的委托对类型实例进行转换
AClass a = new AClass();
BClass b = _mapFunc(a);
  1. 集合类型支持一维数组、List<>、IEnumerable<>类型,其余暂不支持
Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has 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.7 1,031 6/11/2018
1.0.4 816 6/2/2018

新增常用泛型集合的自动转换