Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Join DbSets in different DbContexts #13775
How to join two DbSet<> in different db contexts in EF Core? I have written the following code: Here I have got
Message=Value cannot be null.
I'm having the same issue when trying to join my ASP.NET Core Identity dbcontext with my ApplicationDbContext:
When using the same DbContext in the join, this works perfectly:
I'm receiving the following error:
"Value cannot be null. Parameter name: entityType"
Both DbContexts are using the same database, but are on other schema's:
_dbContext is on schema "HospitalizationRequests"
I'm using EF 2.1.4 and AspNetCore.App 2.1.1
Hope this helps when trying to solve this.