Open Closed

Can I add a link to the entity in IdentityUser? #196


User avatar
0
wai created

Can I add a link to the "Organizations" entity in IdentityUser? And how to do it? I read the documentation. I managed to add string and enum properties. How and where to declare a variable on the essence of "Organizations"?

user.AddOrUpdateProperty <???> ("Organization")

  • **ABP Framework version: 2.8.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no

7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Are you talk about foreign key?

    Please see https://github.com/abpframework/abp/issues/3959

  • User Avatar
    0
    wai created

    Yes, something similar as in the link

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Currently the entity extension system does not seem to support foreign key configuration, it was in the 2.9 milestone.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi, Here is an example that may help you : https://github.com/abpframework/abp-samples/tree/master/DocumentationSamples/CustomApplicationModules

  • User Avatar
    0
    wai created

    Hello! I have a problem. I have entity "Employee" add dependency with AppUser using ABP Suite Navigation property: AppUserDTO created in ApplicationAutoMapperProfile () added

    CreateMap <AppUser, AppUserDto> (). Ignore (x => x.ExtraProperties);
    

    but on creation it throws the following error: An example was taken from the topic: https://support.abp.io/QA/Questions/150/How-To-Create-a-Help-Desk-Ticket-Entity

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It has nothing to do with Automapper, It related to ef core.

    I see you are trying to add AppUser navigation property for Employee entity, Currently cannot complete this work using suite. You can refer the example. In this example, I added AppUser navigation property for Test entity.

  • User Avatar
    0
    alper created
    Support Team Director

    check out https://community.abp.io/articles/abp-suite-how-to-add-the-user-entity-as-a-navigation-property-of-another-entity-furp75ex if you still cannot manage, reopen this question.

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