Database.GetStoredProcCommand Method (String, Object[])

Creates a DbCommand for a stored procedure.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

public virtual DbCommand GetStoredProcCommand(
	string storedProcedureName,
	params Object[] parameterValues
)

Parameters

storedProcedureName
Type: System.String

The name of the stored procedure.

parameterValues
Type: System.Object []

The list of parameters for the procedure.

Return Value

The DbCommand for the stored procedure.

The parameters for the stored procedure will be discovered and the values are assigned in positional order.

Show: