注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

gmd20的个人空间

// 编程和生活

 
 
 

日志

 
 

.Net 中的通用数据库类库  

2010-04-07 20:29:46|  分类: 程序设计 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

很久没有用过.Net了,对.Net 也不是很熟悉,不过应该所有的项目都会用到一个通用的数据库连接“类工厂”类库的。我也见个很多的项目都是自己写一个类似功能的库的。

在CSDN网友评论看到有推荐来自微软的“SQLHelper” ,我找了一下,应该是微软的“Data Access Application Block ” (http://msdn.microsoft.com/en-us/library/dd139920.aspx)来的,来自微软开发的“Microsoft Enterprise Library” (http://msdn.microsoft.com/en-us/library/dd203099(v=MSDN.10).aspx)库。

      我没有仔细看,不过微软出品的总应该不错的吧,以后什么项目用数据库应该可以使用它就行了,不用自己重写一遍。其实微软的那个库还包含其他很多东西,基本都是些常用的类库,不过不是每个项目里面都用的到,感兴趣的朋友可以自己看一下,他包含类库的有:

  • Caching Application Block. Developers can use this application block to incorporate a cache in their applications. Pluggable cache providers are supported.
  • Cryptography Application Block. Developers can use this application block to incorporate hashing and symmetric encryption in their applications.
  • Data Access Application Block. Developers can use this application block to incorporate standard database functionality in their applications.
  • Exception Handling Application Block. Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications.
  • Logging Application Block. Developers can use this application block to include standard logging functionality in their applications.
  • Policy Injection Application Block. Developers can use this application block to implement interception policies that can be used to streamline the implementation of common features, such as logging, caching, exception handling, and validation, across a system.
  • Security Application Block. Developers can use this application block to incorporate authorization and security caching functionality in their applications.
  • Unity Application Block. Developers can use this application block as a lightweight and extensible dependency injection container with support for constructor, property, and method call injection, as well as instance and type interception (via an extension).
  • Validation Application Block. Developers can use this application block to create validation rules for business objects that can be used across different layers of their applications.
  •   评论这张
     
    阅读(511)| 评论(0)
    推荐 转载

    历史上的今天

    评论

    <#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
     
     
     
     
     
     
     
     
     
     
     
     
     
     

    页脚

    网易公司版权所有 ©1997-2017