CommandAccessor<TResult> Methods

Include Protected Members
Include Inherited Members

The CommandAccessor<TResult> type exposes the following members.

Methods

  Name Description
Public method BeginExecute(AsyncCallback, Object, array<Object[])
Begin executing the database object asynchronously, returning a IAsyncResult object that can be used to retrieve the result set after the operation completes.
(Inherited from DataAccessor<TResult>.)
Protected method BeginExecute(DbCommand, IParameterMapper, AsyncCallback, Object, array<Object[])
Helper method to kick off execution of an asynchronous database operation. This method handles the boilerplate of setting up the parameters and invoking the operation on the database with the right options.
Public method EndExecute
Complete an operation started by BeginExecute(AsyncCallback, Object, array<Object[]).
(Overrides DataAccessor<TResult>.EndExecute(IAsyncResult).)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Execute(DbCommand)
Executes the command and returns an enumerable of TResult. The enumerable returned by this method uses deferred loading to return the results.
Public method Execute(array<Object[])
Execute the database operation synchronously, returning the IEnumerable<T> sequence containing the resulting objects.
(Inherited from DataAccessor<TResult>.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method GuardAsyncAllowed
Checks if the current Database object supports asynchronous operations, and throws InvalidOperationException if not.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

See Also

CommandAccessor<TResult> Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace