学习博文:https://www.cnblogs.com/yan7/p/8085410.html

1.使用nuget 安装

  <PackageReference Include="AutoMapper" Version="8.0.0" />
    <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />

 2.配置

  //添加自动映射
            services.AddAutoMapper();

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-12-28
  • 2021-09-14
  • 2021-12-21
  • 2021-08-19
  • 2022-02-05
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案