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.
Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache Class Reference

Provides parameter caching services for dynamic parameter discovery of stored procedures. Eliminates the round-trip to the database to derive the parameters and types when a command is executed more than once. More...

Public Member Functions

void SetParameters (DbCommand command, Database database)
 Populates the parameter collection for a command wrapper from the cache or performs a round-trip to the database to query the parameters. More...
 

Protected Member Functions

virtual void AddParametersFromCache (DbCommand command, Database database)
 Adds parameters to a command using the cache. More...
 

Detailed Description

Provides parameter caching services for dynamic parameter discovery of stored procedures. Eliminates the round-trip to the database to derive the parameters and types when a command is executed more than once.

Member Function Documentation

◆ AddParametersFromCache()

virtual void Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache.AddParametersFromCache ( DbCommand  command,
Database  database 
)
protectedvirtual

Adds parameters to a command using the cache.

Parameters
commandThe command to add the parameters.
databaseThe database to use.

◆ SetParameters()

void Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache.SetParameters ( DbCommand  command,
Database  database 
)

Populates the parameter collection for a command wrapper from the cache or performs a round-trip to the database to query the parameters.

Parameters
commandThe command to add the parameters.
databaseThe database to use to set the parameters.
Exceptions
ArgumentNullExceptionOne of the arguments is null.

The documentation for this class was generated from the following file: