I'd like to combine multiple databases into one Entity Framework "object model". I do not need to change databases dynamically at runtime. This is a static configuration issue. It should look like this:
- Entity1 mapped to DB1.dbo.Entity1
- Entity2 mapped to DB2.dbo.Entity2
And I should be able to say:
new XyzContext().Entities1
new XyzContext().Entities2
How can I configure Entity Framework to take note of my multiple databases?
I do not want to create views or synonyms. This question is about an EF only solution. I'm using the latest EF version and can switch to any version.