OracleCommand.Prepare 方法
定义
在数据源中创建命令的准备好的(即已编译的)版本。Creates a prepared (or compiled) version of the command at the data source.
public:
virtual void Prepare();
public:
override void Prepare();
public void Prepare ();
public override void Prepare ();
abstract member Prepare : unit -> unit
override this.Prepare : unit -> unit
override this.Prepare : unit -> unit
Public Sub Prepare ()
Public Overrides Sub Prepare ()
实现
例外
未设置 Connection。The Connection is not set.
或-or- Connection 不为 Open()。The Connection is not Open().
注解
在调用之前 Prepare ,请在要准备的语句中指定每个参数的数据类型。Before you call Prepare, specify the data type of each parameter in the statement to be prepared.