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 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 230
3 Abhinav S 175
4 Peter Leow 110
0 Sergey Alexandrovich Kryukov 6,953
1 OriginalGriff 6,311
2 Maciej Los 2,732
3 Peter Leow 2,694
4 Abhinav S 2,652


Advertise | Privacy | Mobile
Web02 | 2.8.150414.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