Ends in:
2 DAYS
11 HRS
0 MIN
57 SEC
Ends in:
2 D
11 H
0 M
57 S
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 December 02, 2024, 12:35