利用 Enterprise Library 改善你的应用系统3——Data Access Application Block

没有什么好说的,只是总结了一些最佳实践:
 1、用 windows 安全机制进行数据库连接的优点:安全性高;缺点:性能低。
    用 DataBase 安全机制进行数据库连接的优点:性能高;安全性低。
 2、推荐用存储过程进行数据访问,而不是要用”embedded SQL“访问数据库。
  优点: improved performance
   individually secured
   easier maintenance
   an extra level of abstraction
   reduce network trafic
 3、用 DataSet 访问数据的最佳实践:
  Require a disconnected memory-resident cache.
  in-memory relational view.
  from multiple data soruce.
  update or submit.
  webControl data binding require IList
    用 DataRead 访问数据的最佳实践:
  Binary large object (BLOB)数据
  large volumes
  webControl data binding require IEnumerable
  reduce the memory footprint

  Data Access Block 的优点:
 通过对 DBCommand 的缓存实现性能优化。

posted @ 2008-05-13 15:30  老大卫  阅读(403)  评论(0编辑  收藏  举报