对象映射工具

创建时间:
2015-06-07 00:53
最近更新:
2018-11-10 01:22

2018-11-07 开始使用 TinyMapper

使用场景

  • ViewModel 转换为 Entity
  • SearchModel 转换为 Entity

List

  1. ExpressionMapper
  2. ExpressMapper - 详见本站专文
  3. TinyMapper - 详见本站专文
  4. EmitMapper - 详见本站专文
  5. FastMapper - 网友: AutoMapper 性能奇差,推荐 FastMapper。
  6. ValueInjecter - 详见本站专文
  7. AutoMapper - 详见本站专文
  8. OoMapper, NLite, NliteMapper
  9. https://github.com/agileobjects/AgileMapper
  10. Green.AgileMapper
  11. Object Mapper
  12. SimpleObjectMapper - Lightweight Object to Object Mapper - 2018-11-09 TNote: 尚未细看,可能有用

2018-11-07 各项目的最近版本

  • 2018-06-18 AutoMapper
  • 2018-06-07 TinyMapper
  • 2018-06-01 ValueInjecter
  • 2017-02-28 ExpressMapper
  • 2016-03-18 EmitMapper

资源数量对比

AutoMapper

http://zzk.cnblogs.com/s?w=AutoMapper

  • 2016-03-25: 591
  • 2018-10-19: 1333
  • 2018-11-06: 1339

http://www.baidu.com/s?wd=AutoMapper

  • 2016-03-25: 1,310,000
  • 2018-10-19: 2,390,000
  • 2018-11-06: 2,160,000

EmitMapper

http://zzk.cnblogs.com/s?w=EmitMapper

  • 2016-03-25: 88
  • 2018-10-19: 235
  • 2018-11-06: 234

http://www.baidu.com/s?wd=EmitMapper

  • 2016-03-25: 6,850
  • 2018-10-19: 25,500
  • 2018-11-06: 8,590

ValueInjecter

http://zzk.cnblogs.com/s?w=ValueInjecter

  • 2016-03-25: 19
  • 2018-10-19: 21
  • 2018-11-06: 20

http://www.baidu.com/s?wd=ValueInjecter

  • 2016-03-25: 23,700
  • 2018-10-19: 65
  • 2018-11-06: 72

NliteMapper

http://zzk.cnblogs.com/s?w=NliteMapper

  • 2016-03-25: 12
  • 2018-10-19: 13
  • 2018-11-06: 13

http://www.baidu.com/s?wd=NliteMapper

  • 2016-03-25: 28
  • 2018-10-19: 46
  • 2018-11-06: 47

TinyMapper

http://zzk.cnblogs.com/s?w=TinyMapper

  • 2018-10-19: 30
  • 2018-11-06: 29

http://www.baidu.com/s?wd=TinyMapper

  • 2018-10-19: 85
  • 2018-11-06: 80

FastMapper

http://zzk.cnblogs.com/s?w=FastMapper

  • 2016-03-25: 1
  • 2018-10-19: 1
  • 2018-11-06: 1

http://www.baidu.com/s?wd=FastMapper

  • 2016-03-25: 36,200
  • 2018-10-19: 504,000
  • 2018-11-06: 519,000

ExpressMapper

http://zzk.cnblogs.com/s?w=ExpressMapper

  • 2018-11-06: 9

http://www.baidu.com/s?wd=ExpressMapper

  • 2018-11-06: 619,000

ExpressionMapper

Resource

  1. C# 快速高效率复制对象另一种方式 表达式树 - 2018-11-06 已整理为 Tl.MapByExpr 类。

Mapster

OoMapper, NLite, NliteMapper

OO Mapper 是 NLite 组件库中的一个组件,它是一个对象到对象转换的映射工具,常常用于把复杂的对象转化为 DTO 对象。
http://nlite.codeplex.com/

  1. 开发人员必备工具: OO Mapper
  2. OO Mapper - 博客园随笔分类 - 风云

Object Mapper

ObjectMapper is a convention based simple and fast library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. The tool uses run-time code generation via the Emit library. It is usefull for dealing with DTO objects, data access layers an so on. Combined the usability of AutoMapper and the performance of EmitMapper.
https://objectmapper.codeplex.com/

Green.AgileMapper

  1. Green.AgileMapper 开源项目的使用 (1)
  2. Green.AgileMapper 项目 (2) - 新增 DO 和 DTO 代码生成

Contrast

  1. EmitMapper 和 TinyMapper 两者简单对比
  2. AutoMapper, EmitMapper, NLiteMapper, TinyMapper 测试
  3. EmitMapper, AutoMapper, NLiteMapper 和手工映射性能大比拼
  4. EmitMapper, AutoMapper, NLiteMapper 和手工映射性能大比拼
  5. EmitMapper versus NliteMapper
  6. EmitMapper versus NliteMapper
  7. AutoMapper、EmitMapper、ValueInjecter 对比
  8. TinyMapper, EmitMapper, AutoMapper, NLiteMapper, Handwritten 对比测试

Resource

  1. 用 C# 打造自己的实体转换器