次の方法で共有


OracleCommandBuilder.GetInsertCommand メソッド

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

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

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

戻り値

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

解説

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

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

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

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

必要条件

プラットフォーム: 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 名前空間