Enterprise Library Data Access Application Block
7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
|
An abstract class representing an object that wraps a database operation. An Accessor is executed, at which point it will go out to the database and return a IEnumerable<TResult> of whatever type TResult is. More...
Public Member Functions | |
abstract IEnumerable< TResult > | Execute (params object[] parameterValues) |
Execute the database operation synchronously, returning the IEnumerable<TResult> sequence containing the resulting objects. More... | |
abstract IAsyncResult | BeginExecute (AsyncCallback callback, object state, params object[] parameterValues) |
Begin executing the database object asynchronously, returning a IAsyncResult object that can be used to retrieve the result set after the operation completes. More... | |
abstract IEnumerable< TResult > | EndExecute (IAsyncResult asyncResult) |
Complete an operation started by BeginExecute. More... | |
An abstract class representing an object that wraps a database operation. An Accessor is executed, at which point it will go out to the database and return a IEnumerable<TResult> of whatever type TResult is.
|
pure virtual |
Begin executing the database object asynchronously, returning a IAsyncResult object that can be used to retrieve the result set after the operation completes.
callback | Callback to execute when the operation's results are available. May be null if you don't wish to use a callback. |
state | Extra information that will be passed to the callback. May be null. |
parameterValues | Parameters to pass to the database. |
This operation will throw if the underlying Database object does not support asynchronous operation.
InvalidOperationException | The underlying database does not support asynchronous operation. |
Implemented in Microsoft.Practices.EnterpriseLibrary.Data.SqlStringAccessor< TResult >, and Microsoft.Practices.EnterpriseLibrary.Data.SprocAccessor< TResult >.
|
pure virtual |
Complete an operation started by BeginExecute.
Implemented in Microsoft.Practices.EnterpriseLibrary.Data.CommandAccessor< TResult >.
|
pure virtual |
Execute the database operation synchronously, returning the IEnumerable<TResult> sequence containing the resulting objects.
parameterValues | Parameters to pass to the database. |
Implemented in Microsoft.Practices.EnterpriseLibrary.Data.SqlStringAccessor< TResult >, and Microsoft.Practices.EnterpriseLibrary.Data.SprocAccessor< TResult >.