When should I be using AutoMapper and when not

旧城冷巷雨未停 提交于 2019-12-05 06:03:33

I use AutoMapper when I want to get rid of boring left-hand-side right-hand-side code. If the logic isn't completely obvious for copying data, I revert back to manual mapping.

These days this means I use LINQ projections from AutoMapper on all GETs, and sparingly on POSTs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!