Open Closed

Can not map Entity to Entity Dto in Module. #2631


User avatar
0
krushnakant created
  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • In Abp Module whenever we try to map Entity -> EntityDto , where EntityDto having more properties than Entity class it gives error of unmapped properties .
  • That's why I have to map every property of Entity to EntityDto manually in AppService and this only happens in Module. So, please provide any solution for this .
  • Thank you.
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    It explains in the error that you have unmapped properties. Either add Country, State, District, Taluka, Village properties with exact name to AddressDto (or manually configure) or ignore them in mapping configuration.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11