I have a entity called MPE and I need to add one-to-many relation to a role entity. how can I extend the role?
I think you can add IdentityRole to your DbContext, even if the relation between aggregate roots is not a good practice for DDD.
I think you can add
IdentityRoleto your DbContext, even if the relation between aggregate roots is not a good practice for DDD.
You mean I can define a new class like AppIdentityRole and derive if from IdentityRole and then add the AppIdenityRole to my DbContext?
No, just add abp's IdentityRole.
No, just add abp's
IdentityRole.
So How can I add my custom property?
Add it to MyDbContext then you can make MPE relate to IdentityRole without changing IdentityRole's properties. But if possible, dont make relation between aggregate roots.
You can do same we did for AppUser. Just check where it is used to understand how we did it. Not so hard.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.