Click here to Skip to main content
11,927,190 members (51,207 online)
Rate this:
Please Sign up or sign in to vote.
See more: WCF Design Patterns
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

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.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