<ExtensionAttribute>
Public Shared Sub AddParametersWithValues (
command As DbCommand,
sql As String,
ParamArray values As Object()
)public:
[ExtensionAttribute]
static void AddParametersWithValues(
DbCommand^ command,
String^ sql,
... array<Object^>^ values
)Gemstone.Data.DataExtensions.DataExtensions.AddParametersWithValues = function(command, sql, ... values);This method does very rudimentary parsing of the SQL statement so parameter names should start with the '@' character and should be surrounded by either spaces, parentheses, or commas.
Do not use the same parameter name twice in the expression so that each parameter, identified by '@', will have a corresponding value.
| ArgumentException | Number of DbParameter arguments in sql expression, identified by '@', do not match number of supplied parameter values. |