You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var cfg = new MapperConfiguration(
x =>
{
x.AddGlobalIgnore("Links");
x.CreateMap<Src, Dst>().ForMember(d => d.Links, opt => opt.UseValue(100));
});
cfg.AssertConfigurationIsValid();
var mapper = cfg.CreateMapper();
var src = new Src { A = 10 };
var dst = mapper.Map<Src, Dst>(src);
Debug.Assert(dst.Links == 100, "dst.Links == 100");
In previous version 4.2.1 AddGlobalIgnore can be overridden by specific map configuration.
But in 5.0 if AddGlobalIgnore is defined any mapping definition is ignored.
The text was updated successfully, but these errors were encountered:
In previous version 4.2.1 AddGlobalIgnore can be overridden by specific map configuration.
But in 5.0 if AddGlobalIgnore is defined any mapping definition is ignored.
The text was updated successfully, but these errors were encountered: