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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10