title: How do I access 2 DBContext in one Razor page
body: <p>In my Razor page I would like to use a second DBContext that is connected to a different database.</p>
  
  <p>I have two DBContext that are connecting to two different database that work fine independently in the same app. DB1 is connected to MS Sql Server running on a Linux box, this is the main database. DB2 is connected to MS Sql Server on a Windows Server 2016. I can create CRUD for tables in DB1 and all functions work correctly, I can create Read for a View in DB2 and data is retrieved as expected.
  When creating a new record in DB1 I would like to merge data from DB2. How do I create/access a DBContext for DB2 in a Razor page CRUD created for a DBContext for DB1. 
  I hope this makes sense. I have tried for the last couple of days googling like crazy and haven't been able to find a solution.</p>