AMapper 1.0.7

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 and Polyglot Notebooks. 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 Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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,228 6/11/2018
1.0.4 953 6/2/2018

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