Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

power tools entity #7985


User avatar
0
Siyeza created

I create an entity with just two properties Id & Name, creating & listing is working fine BUT 'edit' is failing on this line (this is happening to all of these entities)

var output = new GetTitleForEditOutput { Title = ObjectMapper.Map<CreateOrEditTitleDto>(title) };


3 Answer(s)
  • User Avatar
    0
    Siyeza created

    exception below

    AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

    Mapping types: Title -> CreateOrEditTitleDto insureserve.GenericLookups.Title -> insureserve.GenericLookups.Dtos.CreateOrEditTitleDto at lambda_method(Closure , Title , CreateOrEditTitleDto , ResolutionContext ) at lambda_method(Closure , Object , Object , ResolutionContext ) at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 212

  • User Avatar
    0
    Siyeza created

    got it, had to do the ReverseMappings()

  • User Avatar
    0
    Siyeza created

    closed