Hello,
We are attempting to upgrade from AutoMapper 3.3.1 to 5.1.1. One of the final hurdles is finding the equivalent to ResolutionContext.Member
Here's a snippet of code for context:
internal static void ApplyFieldsCondition<TSource, TDestination, TMember>(IMemberConfigurationExpression<TSource, TDestination, TMember> opt)
{
opt.Condition(new Func<ResolutionContext, bool>(context =>
{
if (AlwaysIncludedFields.Contains(context.MemberName))
return true;
return ((WebRequestParameters) context.Options.Items[RequestParametersKey]).ContainsField(context.MemberName);
}));
}
Thanks,
Matt