Open Closed

Navigation Property for IdentityUser in other database table #4547


User avatar
0
isteer created

Hi we are trying to navigate the identityuser in our candidate entity which is in separate database i.e. not in our main abp database using Abp suite But we are not getting Users in Collection names.


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

    Hi,

    As far as I know, it's not possible to create a navigation property in a different database.

    You should create relationships through code logic.

  • User Avatar
    0
    isteer created

    Hi,

    As far as I know, it's not possible to create a navigation property in a different database.

    You should create relationships through code logic.

    How to do that, can you guide us

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can consider redundant user data in the module like we did: https://github.com/abpframework/abp/tree/dev/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Users

    The CMS is a module, Its user data is synchronized from the identity module.

    At this point you can create navigation properties in the module

  • User Avatar
    0
    isteer created

    @liangshiwei thanks for your replay This is the Major things where we have stucked through That API Approach, I am able to create API and get the user Data through API Know I have One Candidate Table and I have created a CRUD page for that. The Data I am getting I want to show in the Candidate Table in the form of a Dropdown And the selected Value of the Dropdown I want to store in the Database is in Candidate Table Can you help me with this thing... can you update this thing in https://github.com/realLiangshiwei/Qa4516 this project only.

  • User Avatar
    0
    isteer created

    @liangshiwei thanks for your replay This is the Major things where we have stucked through That API Approach, I am able to create API and get the user Data through API Know I have One Candidate Table and I have created a CRUD page for that. The Data I am getting I want to show in the Candidate Table in the form of a Dropdown And the selected Value of the Dropdown I want to store in the Database is in Candidate Table Can you help me with this thing... can you update this thing in https://github.com/realLiangshiwei/Qa4516 this project only.

    @liangshiwei Can you Please Help me with this

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    This looks like a common query form, we have an easy-crm example that covers this: https://easycrm.abp.io/

    You can download the complete source-code from https://abp.io/api/download/samples/easy-crm

  • User Avatar
    0
    isteer created

    Hi,

    This looks like a common query form, we have an easy-crm example that covers this: https://easycrm.abp.io/

    You can download the complete source code from https://abp.io/api/download/samples/easy-crm

    Here the thing is I have two databases Database one is connected to Mainapp and database2 is connected with Module know in Module I am getting the data of my Mainapp through API I am fetching the users based on role in the module I have one entity named called as Candidate and I have full crud page for that here I want to add another one dropdown while creating the Candidate in dropdown I want to show the data which is coming from the API and i want to Store the Selected Value through Dropdown in Candidate Table in database

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, but it is no different, you can use the repository in the app service to get the data and store data. I don't know what's blocked you. Could you let me know? thanks.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11