M
M
mindgrow2018-04-14 11:59:55
.NET
mindgrow, 2018-04-14 11:59:55

Automapper - Is it possible to ignore the mapping of some property after the mapping map has been created?

Good afternoon!
Is it possible to ignore the mapping of some property after the mapping map has been created?
This is necessary for those cases when I create a new object, for example cfg.CreateMap();
mapping is configured; in one of the methods I want the Id field to be ignored, and in the other methods not to be ignored. How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2018-04-14
@kttotto

I think that only create two different configurations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question