次の方法で共有


OracleCommandBuilder.GetUpdateCommand メソッド

メモ : この名前空間、クラス、およびメンバは、.NET Framework Version 1.1 だけでサポートされています。

データベースで更新処理を実行するための、自動生成された OracleCommand オブジェクトを取得します。

Public Function GetUpdateCommand() As OracleCommand
[C#]
public OracleCommand GetUpdateCommand();
[C++]
public: OracleCommand* GetUpdateCommand();
[JScript]
public function GetUpdateCommand() : OracleCommand;

戻り値

更新を実行するための自動生成された OracleCommand オブジェクト。

解説

GetUpdateCommand メソッドは、実行する OracleCommand オブジェクトを返すため、このメソッドを情報の取得またはトラブルシューティングに利用できます。

GetUpdateCommand は、変更して使用するコマンドの基礎としても使用できます。たとえば、 GetUpdateCommand を呼び出し、 CommandText 値を変更してから、そのコマンドを明示的に OracleDataAdapter に設定できます。

SQL ステートメントは、アプリケーションが最初に Update または GetUpdateCommand を呼び出したときに生成されます。

詳細については、「 自動生成コマンド 」を参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

OracleCommandBuilder クラス | OracleCommandBuilder メンバ | System.Data.OracleClient 名前空間