Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF Design pattern
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 23-Aug-12 22:21pm
Edited 23-Aug-12 22:23pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,587
3 Zoltán Zörgő 3,406
4 Richard MacCutchan 2,397


Advertise | Privacy | Mobile
Web03 | 2.8.150123.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100