BindByName
This property specifies the binding method in the collection.
Declaration
// C#
public bool BindByName {get; set;}Property Value
Returns true if the parameters are bound by name; returns false if the parameters are bound by position.
Remarks
Default = false.
BindByName is ignored under the following conditions:
-
The value of the
XmlCommandTypeproperty isInsert,Update, orDelete. -
The value of the
XmlCommandTypeproperty isQuery, but there are no parameters set on theOracleCommand.
If the XmlCommandType property is OracleXmlCommandType.Query and any parameters are set on the OracleCommand, the BindByName property must be set to true. Otherwise, the following OracleCommand methods throw an InvalidOperationException.
-
ExecuteNonQuery -
ExecuteXmlReader -
ExecuteStream -
ExecuteToStream