Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

persons.MapTo<List<PersonListDto>>(); 方法过时了 #8

Open
shuairobin opened this issue Oct 27, 2019 · 3 comments
Open

persons.MapTo<List<PersonListDto>>(); 方法过时了 #8

shuairobin opened this issue Oct 27, 2019 · 3 comments

Comments

@shuairobin
Copy link

[Obsolete("Automapper will remove static API, Please use ObjectMapper instead. See https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4667")]

现在要改成什么方法

@zhenl
Copy link

zhenl commented Nov 27, 2019

Change to
ObjectMapper.Map<List>(persons)
will work

@thr828
Copy link

thr828 commented Apr 18, 2020

用不了ObjectMapper,是怎么回事

@zaprays
Copy link

zaprays commented May 6, 2020

用不了ObjectMapper,是怎么回事

你注入了吗

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants