CodePlexProject Hosting for Open Source Software
The Data Access Application Block (DAAB) abstracts the actual database you are using, and exposes a series of methods that make it easy to access that database to perform common tasks. It is designed to simplify the task of calling stored
procedures, but also provides full support for the use of parameterized SQL statements. As an example of how easy the block is to use, when you want to fill a
DataSet you simply create an instance of the appropriate
Database class, use it to get an appropriate command instance (such as
DbCommand), and pass this to the
ExecuteDataSet method of the Database class. You don't need to create a
DataAdapter or call the
Fill method. The ExecuteDataSet method manages the connection, and carries out all the tasks required to populate your
DataSet. In a similar way, the
Database class allows you to obtain a DataReader, execute commands directly, and update the database from a
DataSet. The block also supports transactions to help you manage multiple operations that can be rolled back if an error occurs.
In addition to the more common approaches familiar to users of ADO.NET, the Data Access block also provides techniques for asynchronous data access for databases that support this feature, and provides the ability to return data as a sequence of
objects suitable for client-side querying using techniques such as Language Integrated Query (LINQ). However, the block is not intended to be an Object/Relational Mapping (O/RM) solution. It uses mappings to relate parameters and relational data with the properties
of objects, but does not implement an O/RM modeling solution.
Official releases are available via
Nuget. You can also head to
msdn.com/entlib for additional information, documentation, videos, and hands-on labs.
If you want to try out the latest changes that have not been officially released yet, signed interim builds of the DAAB code base will be made available via myget.org gallery.
We use the Issue Tracker for updating the product backlog (both feature requests and bugs).
We welcome your contributions. Check out project and contribution
Last edited May 28, 2014 at 11:28 PM by bennage, version 5
There is no recommended release for this project.