| Devart.Data.Universal Namespace : UniParameterCollection Class |
Collects all parameters relevant to a UniCommand as well as their respective mappings to
For a list of all members of this type, see UniParameterCollection members.
Devart.Common.DbParameterBaseCollection
Devart.Data.Universal.UniParameterCollection
[Visual Basic]
Public Class UniParameterCollection
Inherits DbParameterBaseCollection[C#]
public class UniParameterCollection : DbParameterBaseCollectionThe number of parameters in the collection must be equal to the number of parameter placeholders within the command text, or raises an error.
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 'AddUniParametersUniParameterCollection Members | Devart.Data.Universal Namespace | UniParameter Class | UniCommand Class
© 2002 - 2013 Devart. All Rights Reserved.