Database SQL Oracle MySql
Thursday, April 10, 2014

Data Access Application Block (DAAB)

With this application block, developers can incorporate standard database functionality such
 as (Connection, Command, Transaction etc.) in their applications.


ADO.NET provides many rich features that can be used to retrieve and display data in a number of ways.
But with this process we find ourselves repeating the same code again & again.
For this reason Microsoft introduced DAAB which can be used to perform common task in with less code.
Another point if different companies are using the DAAB then you will find the code more easier to understand.

Previous version of DAAB works by sqlclient provider.

DAAB 2.0 works with abstract provider DatabaseFactory, Database class.

DAAB 2.0 use the ADO.NET 2.0 classes
DbCommand
DbConnection

The abstract Database class provides a number of methods at your disposal that are your normal ADO.NET 2.0 commands
ExecuteDataSet
ExecuteNonQuery
ExecuteReader
ExecuteScalar
LoadDataSet
UpadateDataSet
AddInParameter
AddOutParameter
GetSqlStringCommand
         GetStoreProcCommand
  • Blogger Comment
  • Facebook Comment

0 comments:

Copyright © 2014 ASP.NET & C# & IIS & Crystal Report & Database & ADO.NET All Right Reserved
Designed by ASP.NET Tuts