add options to disable and override ExplicitExpansion#4327
Conversation
|
@lbargaoanu i think i corrected almost everything. (apart from the override parameter that i really would like to talk about) |
| base.Seed(context); | ||
| } | ||
| } | ||
| protected override MapperConfiguration CreateConfiguration() => new(c => c.CreateProjection<Entity, Dto>().ForCtorParam("Name", o => o.ExplicitExpansion(false))); |
There was a problem hiding this comment.
This should use mapping inheritance, the same as the test below.
There was a problem hiding this comment.
@lbargaoanu i added a new test for constructor mapping with inheritance (sorry for the long delay i needed to change my computer)
41d0619 to
0b9fbce
Compare
|
if you do that, you loose all the advantage of doing this pr ! |
|
Obviously it doesn't, all the existing tests pass. |
|
Well, that's what's needed here. The |
replace #4326
Pr to implement https://github.com/AutoMapper/AutoMapper/discussions/4325
from discussion from here : https://github.com/AutoMapper/AutoMapper/discussions/4323