DAL使用单例设计模式 [英] DAL using singleton design pattern

查看:144
本文介绍了DAL使用单例设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用单例模式设计DAL.可以为您提供一些帮助.请注意,业务层将使用DAL与数据库进行通信.

提前感谢

Pramod

解决方案

可能要查看以下类:

.NET v2的数据访问应用程序块

简要说明

数据访问应用程序块是一个.NET组件,其中包含优化的数据访问代码,这些代码将帮助您调用存储过程并针对SQL Server数据库发出SQL文本命令.


 

Hi

 

I would like to design a DAL using singleton pattern. can some body help with an example.Please note that the business layer will use DAL for communication to database.

 

thanks in advance

Pramod

解决方案

May want to review these classes:

 

Data Access Application Block for .NET v2

Brief Description

The Data Access Application Block is a .NET component that contains optimized data access code that will help you call stored procedures and issue SQL text commands against a SQL Server database.


这篇关于DAL使用单例设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆