I am using mutiple dbContext (IdentityDbContext and DBContext) in my app. Due to some reasons, I am bound to use multiple DBContext, as I know you will answer me to Use only DBContext as inherit DBContext from IdentityDbContext (I will not do this).
Anyhow, I have a table named Patient in DBContext, which has Foreign key relation with User. and User belongs to IdentityDBContext.
Now when I am generating Migration scripts from DBContext, It adds DDL for User; Although User table is already created during IdentityDBContext migration. It seems, there is something missing in migration relation. I want to create foreign key Patient.UserId ==> User.UserId, but don't create User table ddl scripts.
Can anyone help me how to define such relationship between two entities that are defined in another DBContext.