George's Bio  Bio    Blog    Articles    Books    Presentations RSS 2.0 Atom 1.0 CDF  
George Wesolowski's .NET Weblog - Using the Database Access Application Block (DAAB) in Enterprise Library 2.0 ...
 
 Tuesday, December 27, 2005

I've been looking at the latest version of the Database Access Application Block for my latest project, a VB6 to .NET 2.0 migration project.  I've used previous version of the DAAB in .NET 1.0 and 1.1 projects and found it to be a great tool to encapsulate and standardize all the database access logic ...

While earlier versions were made up of almost entirely static methods of a SQLHelper class that made a database connection, setup the commands, executed them, and tore down the connection, the new version is based on a Database object that wraps the DbConnection object and also handles the fetching of the connection string from the web.config file.  It also provides the flexibility to setup your own DbCommand object (with any appropriate SQLParameters), or make a method call that encapsulates the DbCommand.  The "Quick Start" also provides a useful test harness that provides examples of salient use cases ...

The DAAB is a great way to jumpstart any ADO.NET 2.0 development effort!

12/27/2005 9:32:17 PM (Eastern Standard Time, UTC-05:00)  #       | 
Copyright © 2008 George D. Wesolowski
newtelligence dasBlog 1.8.5223.1