Starts in:
1 DAY
23 HRS
50 MIN
5 SEC
Starts in:
1 D
23 H
50 M
5 S
Open Closed

Two DBContext UserId FK #4938


User avatar
0
Leonardo.Willrich created
  • ABP Framework version: v7.1.0
  • UI type: Blazor WASM
  • DB provider: EF Core

Hi, I have two DBContext in my application, one is for ABP tables, like AbpUsers, and the other one I have the tables for my application. In one table, I need to create a Foreign Key to Users (UserId), is that possible? If so, how I can implement that?

Kind regards, Leonardo Willrich.


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

    Hi,

    Unfortunately, it's not possible.

    Here is a good explanation: https://stackoverflow.com/questions/36018140/custom-aspnet-identity-one-to-many-relationship-using-multiple-context-applicati

  • User Avatar
    0
    Leonardo.Willrich created

    Ok, thank you.

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