Entity Framework Core Using multiple DbContexts
问题 I'm having a problem that when I try to access a field in my PartsDbContext I get the following error: System.Data.SqlClient.SqlException: 'Invalid object name 'fieldName'' It seems that this is because I'm trying to make my PartsDbContext use the same database as my ApplicationDbContext which is used with Identity. I need to know how to setup a 2nd dbcontext to work with EF core that uses/creates a different database. I've tried creating a 2nd connection string but that gets me this error: