简体   繁体   English

Automapper 创建 map 方法

[英]Automapper create map method

Im working with automapper and was wondeeing about this thing, Is create map works two way, Do i need to create map from entity to dto and from dto to entity, One of them is good enought?我正在使用 automapper 并且对这件事很感兴趣,创建 map 是否有两种工作方式,我是否需要从实体到 dto 和从 dto 到实体创建 map,其中一个足够好?

It only works one way, you will have to create both maps.它只能以一种方式工作,您必须创建两个地图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM