Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
I am working on one ASP MVC4 + Silverlight application. My application requirement is to communicate with all type of databases like MySQL, MSSQL and Oracle. I am thinking of using any standard WCF design pattern, so that my interface will be same but implementations will be different.

Can anyone suggest me what is the good design pattern to achieve this, it would be also helpful for me if anyone shared me a bit of code.

One more question is shall i go with WCF REST services or WCF will be ok in this scenario? The important thing here is my service is going to communicate with both the ASP.NET and Silverlight applications.

Thanks in Advance.

Cheers! Yogesh
Posted
Updated 23-Aug-12 21:23pm
v2

1 solution

I would go on Repository Pattern.
Check Martin Fowler articles about it and also use Google and most likely it will provide a clean approach on solving your problem.
 
Share this answer
 

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