See Also

UniParameterCollection Members  | Devart.Data.Universal Namespace  | UniParameter Class  | UniCommand Class

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.UniversalSend comments on this topic.

UniParameterCollection Class

Devart.Data.Universal Namespace : UniParameterCollection Class

Collects all parameters relevant to a UniCommand as well as their respective mappings to DataSet columns.

For a list of all members of this type, see UniParameterCollection members.

Inheritance Hierarchy

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

Syntax

[Visual Basic]
Public Class UniParameterCollection    Inherits DbParameterBaseCollection
[C#]
public class UniParameterCollection : DbParameterBaseCollection

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.

[C#] 

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(); 

[Visual Basic] 

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

See Also

UniParameterCollection Members  | Devart.Data.Universal Namespace  | UniParameter Class  | UniCommand Class

 

 


© 2002 - 2013 Devart. All Rights Reserved.