CreateCommand
This method returns OracleCommand
ready to execute against the OracleDataSource
.
Declaration
// C#
public DbCommand CreateCommand(string command)
Parameters
-
command
The SQL command to execute
Return Value
An OracleCommand
object ready to execute the command against the OracleDataSource
.
Remarks
The command returned by this method does not have an explicit OracleConnection
associated with it. Setting the connection on the OracleCommand
object returned by this method will throw an exception.
Since the command is not associated with a connection, it cannot participate in transactions. Setting the transaction property on the OracleCommand
object returned by this method throws an exception.