SiHan.Libs.Mapper 1.0.0

C# 基于反射的对象映射库

Install-Package SiHan.Libs.Mapper -Version 1.0.0
dotnet add package SiHan.Libs.Mapper --version 1.0.0
<PackageReference Include="SiHan.Libs.Mapper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiHan.Libs.Mapper --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiHan.Libs.Mapper, 1.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

SiHan.Libs.Mapper

C# 对象映射库(基于反射),唯一的核心类:ObjectMapper,具有以下方法:

  • Map:映射对象。
  • MapList:映射列表。
  • CopyValues:两个对象之间拷贝值。

无论是映射还是拷贝值,都基于以下约定:

  • 属性必须是public;
  • 属性名称必须相同;
  • 属性类型必须相同;

SiHan.Libs.Mapper

C# 对象映射库(基于反射),唯一的核心类:ObjectMapper,具有以下方法:

  • Map:映射对象。
  • MapList:映射列表。
  • CopyValues:两个对象之间拷贝值。

无论是映射还是拷贝值,都基于以下约定:

  • 属性必须是public;
  • 属性名称必须相同;
  • 属性类型必须相同;

  • .NETStandard 2.0

    • 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 History

Version Downloads Last updated
1.0.0 187 1/9/2020