Reputation: 13367
I have an existing database context (database1) and .edmx that contains tables from database1. I need to add a couple of tables from another database2. How can I do this by right clicking on my .edmx and selecting "Update model from Database..." but be able to select the tables from database 2 instead of database 1?
Upvotes: 1
Views: 676
Reputation: 30152
You can't however an alternative here is to:
Upvotes: 2
Reputation: 7133
You can't directly do this. An Entity Framework context is tied to a single DB.
You can create a view that links to your other db and use that.
Upvotes: 2