Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to have one model (entity framework 5), but connect to two different providers, one that supports SQL and one that supports Oracle. The idea is that I have one set of entities but with a different provider or connection string. I don't want to have two entities, one for each provider.

did anyone do this?
Posted
Updated 17-Dec-12 4:55am
v3
Comments
Rohit Shrivastava 19-Dec-12 18:48pm    
theoritically thats what entity framework provides. only constraint is you should have the same schema in both the databases. Have you tried it and facing any issues?

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