I have two classes with "Points" member in both, but in one of them Points are string type and string[][] in anather class.
I use Automapper and the next configuration
x.CreateMap<ProblemViewModel, Problem>()
.ForMember(dest => dest.Points,
src => src.MapFrom{PointsForDbResolver}())
.ReverseMap()
.ForMember(dest => dest.Points,
src => src.MapFrom{PointsForViewResolver}());
with custom value resolvers "PointsForDbResolver" and "PointsForViewResolver" (both are IValueResolver) that convert mentioned types in each other. But I get error:
Exception Details: System.InvalidOperationException: Sequence contains no elements
Coud you help me to resolve this problem and is it possible this transformation to be done by Automapper.