Open Closed

IDistrbitued EventHandler for UserEto does not have My cutom Properties #3087


User avatar
0
narinder@urvin.finance created

[QUESTION DELTED]


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will make UserEto class inherit IHasExtraProperties.

    https://github.com/abpframework/abp/pull/12597

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can also customize the ETO class.

    See https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#event-transfer-object

    https://github.com/abpframework/abp/blob/e499f40fc1e7f041def67b6bf8d30d5b337c4b54/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs#L39 https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityDomainMappingProfile.cs#L10

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can configure it in the Identity microservice.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    This is giving error while creating user something related to method invocation

    What's the error?

    You need to use YourUserEto that contains your custom properties,

    options.EtoMappings.Add<IdentityUser, YourUserEto>(typeof(AbpIdentityDomainModule));

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 22, 2025, 10:12