メモ : この名前空間、クラス、およびメンバは、.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 名前空間