ParameterCache.SetParameters Method
Populates the parameter collection for a command wrapper from the cache or performs a round-trip to the database to query the parameters.
Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public void SetParameters(
DbCommand command,
Database database
)
'Declaration
Public Sub SetParameters (
command As DbCommand,
database As Database
)
public:
void SetParameters(
DbCommand^ command,
Database^ database
)
Parameters
command
Type: System.Data.Common.DbCommandThe command to add the parameters.
database
Type: Microsoft.Practices.EnterpriseLibrary.Data.DatabaseThe database to use to set the parameters.