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




  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 net481
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,054 6/11/2018
1.0.4 831 6/2/2018