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...
|
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...
|
|
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.
◆ AddParametersFromCache()
virtual void Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache.AddParametersFromCache |
( |
DbCommand |
command, |
|
|
Database |
database |
|
) |
| |
|
protectedvirtual |
Adds parameters to a command using the cache.
- Parameters
-
command | The command to add the parameters. |
database | The 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
-
command | The command to add the parameters. |
database | The database to use to set the parameters. |
- Exceptions
-
ArgumentNullException | One of the arguments is null. |
The documentation for this class was generated from the following file: