Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OracleCommand::Prepare Method ()

 

Creates a prepared (or compiled) version of the command at the data source.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

public:
virtual void Prepare() override

Exception Condition
InvalidOperationException

The Connection is not set.

-or-

The Connection is not Open.

Before you call Prepare, specify the data type of each parameter in the statement to be prepared.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft