与MySQL,MSSQL和Oracle进行通信的WCF设计模式 [英] WCF Design Pattern To Communicate with MySQL, MSSQL and Oracle
问题描述
大家好,
我正在开发一个ASP MVC4 + Silverlight应用程序.我的应用程序要求是与所有类型的数据库(如MySQL,MSSQL和Oracle)进行通信.我正在考虑使用任何标准的WCF设计模式,以便我的界面相同,但实现方式会不同.
任何人都可以建议我什么是达到此目的的良好设计模式,如果有人分享了我的一些代码,这对我也有帮助.
还有一个问题是我应该使用WCF REST服务还是在这种情况下可以使用WCF?这里重要的是我的服务将与ASP.NET和Silverlight应用程序进行通信.
在此先感谢.
干杯! Yogesh
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
推荐答案
我会继续使用Repository Pattern.
查看Martin Fowler的相关文章,并使用Google,它很可能会为您解决问题提供一种干净的方法.
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.
这篇关于与MySQL,MSSQL和Oracle进行通信的WCF设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!