Automapper 8不会在没有配置的情况下映射具有相同属性的两个实体

问题描述 投票:0回答:1

[以前,在版本7中,我编写了很多从输入到实体的映射,而没有配置,但是在版本8中,我必须为这些类型的映射编写空的config,如何避免这种情况?

c# entity-framework mapping automapper aspnetboilerplate
1个回答
-1
投票
[AutoMap(typeof(User))] public class UserDto

Here is the reference to it

© www.soinside.com 2019 - 2024. All rights reserved.