QtMapper 0.2.0

A simple Mapper use easily
自用的Mapper,功能比较单一

Install-Package QtMapper -Version 0.2.0
dotnet add package QtMapper --version 0.2.0
<PackageReference Include="QtMapper" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QtMapper --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

You can use two methods to convert your objectSrcType to objectDstType easily.
A. Use the Bind(default strategy) which will map the properties or field automatically( same type and name).It works well with BindExtra
B. Use the Bind(custom strategy) to decide the map rules.
Array and List is also supported. View the test code or wiki you can get more help :)

转换方法有两种,
第一种,默认规则转换(Bind),根据类型和字段名,配合额外转换(BindExtra)使用;
第二种,自定义规则转换(Bind),直接写下自定义规则即可;
顺便也支持了Array和List的绑定,详情参阅代码和wiki

  • .NETFramework 4.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.2.0 250 11/1/2018
0.1.2 166 10/8/2018