安装或设置

可以从包管理器控制台中运行以下命令的 nuget 安装 Automapper :

Install-Package AutoMapper

然后它可以被包含在 using 指令所安装的项目中的不同文件中:

using AutoMapper;