Enterprise Library 5 DAAB - DatabaseExtensions Class and DAAB Accessors

The preliminary source code releases of Enterprise Libary 5 have a class, called DatabaseExtensions, which is a bunch of Extension Methods on the Database Class in the Data Access Application Block ( DAAB ). I have been calling these methods Database Accessors or DAAB Accessors after the names of the methods which are

  • Database.CreateSprocAccessor
  • Database.ExecuteSprocAccessor
  • Database.CreateSqlStringAccessor
  • Database.ExecuteSqlStringAccessor
  • etc...

The goal of these DAAB Accessors is to remove some of the monotonous code that is associated with mapping an IDataReader or IDataRecord to a custom class or custom collection that you may use in your .NET applications.

You will find an example of using the Database.ExecuteSprocAccessor in its simplest form at the following tutorial:

I'll be doing a lot of my code-oriented posts on this new blog so you may want to subscribe to the feed to stay up with my posts.

Hope it helps.

David Hayden

 

Microsoft .NET Developer Tutorials

 

posted on Friday, December 18, 2009 6:50 PM

Main

News

Green Tea

.NET Development

Enterprise Library

Patterns & Practices