Base solution for your next web application
Open Closed

Unmapped members were found - Translation Entities #7476


User avatar
0
Mahinthan created
  • I have followed the instructions from the following doc.

https://aspnetboilerplate.com/Pages/Documents/Multi-Lingual-Entities

  • When I run an endpoint to create a product, I get the following error

Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters

AutoMapper created this type map for you, but your types cannot be mapped using the current configuration. ProductDto -> Product (Destination member list) SwissOrdering.Product.ProductDto -> SwissOrdering.Product.Product (Destination member list)

Unmapped properties: Id

  • Im using the following version of Automapper

Abp.AutoMapper 4.6.0

  • May I know, how can I resolve this issue?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can manually create an object Map based on the AutoMapper error message. These mappings are the same as the application service Dto.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)