Starts in:
2 DAYS
9 HRS
44 MIN
29 SEC
Starts in:
2 D
9 H
44 M
29 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