打开 关闭

Two DBContext UserId FK #4938


User avatar
0
Leonardo.Willrich 创建
  • 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 答案
  • User Avatar
    0
    liangshiwei 创建
    支持团队 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 创建

    Ok, thank you.

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