dotConnect Universal Documentation
Devart.Data.Universal Namespace / UniParameterCollection Class
Members Example

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

    System.Object
       System.MarshalByRefObject
          System.Data.Common.DbParameterCollection
             Devart.Common.DbParameterBaseCollection
                Devart.Data.Universal.UniParameterCollection

    See Also