Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How does one connect to multiple databases in sql server under the same context.
if we want to query across multiple databases using Entity framework. how does one do so?.

Thanks
Posted
Comments
Nathan Minier 15-Sep-14 8:53am    
You don't. You create a new context and wrap all of your contexts using a Repository or UnitOfWork, or both if you're a masochist.
Member 10562713 16-Sep-14 14:16pm    
Can you provide an online reference or any example. Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900