| Devart.Data.Oracle Namespace : OracleParameterCollection Class |
Collects all parameters relevant to a OracleCommand as well as their respective mappings to
For a list of all members of this type, see OracleParameterCollection members.
Devart.Common.DbParameterBaseCollection
Devart.Data.Oracle.OracleParameterCollection
[Visual Basic]
Public Class OracleParameterCollection
Inherits DbParameterBaseCollection
Implements ICollection , IEnumerable , IList , IDataParameterCollection [C#]
public class OracleParameterCollection : DbParameterBaseCollection, ICollection , IEnumerable , IList , IDataParameterCollection 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.
The following example adds instance of OracleParameter to collection.
[C#]
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();
} [Visual Basic]
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 'AddOracleParametersOracleParameterCollection Members | Devart.Data.Oracle Namespace | OracleParameter Class | OracleCommand Class
© 2002 - 2013 Devart. All Rights Reserved.