DataFunctions.AddParameterWithValue

This is an extension method for IDbCommand that adds a parameter and value to the command object, doing in one statement what requires several.

public static void AddParameterWithValue(IDbCommand command,
	string parameterName,
	object parameterValue)

Parameters

command
The IDbCommand object.

parameterName
The name of the parameter to create.

parameterValue
The value for the parameter.


See also:

Class DataFunctions