[英]Data access layer design pattern
I need to build a data access layer and I am looking for the right design pattern. 我需要构建一个数据访问层,并且正在寻找正确的设计模式。
what I need is: 我需要的是:
Number 2(above) is most critical for me. 第二个(以上)对我来说至关重要。 Any suggestions? 有什么建议么?
Thanks 谢谢
It looks like the Facade pattern could be used here. 看起来可以在这里使用Facade模式。
and maybe the Singleton pattern too. 也许还有Singleton模式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.