dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlParameterCollection Class
Members Example

MySqlParameterCollection Class
Collects all parameters relevant to a MySqlCommand as well as their respective mappings to System.Data.DataSet columns.
Syntax
Remarks
The number of parameters in the collection must be equal to the number of parameter placeholders within the command text, or MySQL raises an error.
Example
The following example adds instance of MySqlParameter to collection.
public void AddMySqlParameters()
{
  // Create myConnection and myCommand.

  myCommand.CommandText = "DELETE Test.Dept WHERE DeptNo = :DeptNo";
  myCommand.Parameters.Add("DeptNo", MySqlType.Int).Value = 50;
  myCommand.ExecuteNonQuery();
}
Public Sub AddMySqlParameters()
  // Create myConnection and myCommand.

  myCommand.CommandText = "DELETE Test.Dept WHERE DeptNo = :DeptNo"
  myCommand.Parameters.Add("DeptNo", MySqlType.Int).Value = 50
  myCommand.ExecuteNonQuery()

End Sub 'AddMySqlParameters
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.Data.Common.DbParameterCollection
         Devart.Common.DbParameterBaseCollection
            Devart.Data.MySql.MySqlParameterCollection

See Also