dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleParameterCollection Class
Members Example

In This Topic
    OracleParameterCollection Class
    In This Topic
    Collects all parameters relevant to a OracleCommand 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 Oracle raises an error.
    Example
    The following example adds instance of OracleParameter to collection.
    public void AddOracleParameters()
    {
      // Create myConnection and myCommand.
    
      myCommand.CommandText = "DELETE Test.Dept WHERE DeptNo = :DeptNo";
      myCommand.Parameters.Add("DeptNo", OracleDbType.Integer).Value = 50;
      myCommand.ExecuteNonQuery();
    }
    Public Sub AddOracleParameters()
      // Create myConnection and myCommand.
    
      myCommand.CommandText = "DELETE Test.Dept WHERE DeptNo = :DeptNo"
      myCommand.Parameters.Add("DeptNo", OracleDbType.Integer).Value = 50
      myCommand.ExecuteNonQuery()
    
    End Sub 'AddOracleParameters
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.Data.Common.DbParameterCollection
             Devart.Common.DbParameterBaseCollection
                Devart.Data.Oracle.OracleParameterCollection

    See Also