Caprices

SQLiteCommand

コンストラクタ
▲上へ
public SQLiteCommand();
概要
Default constructor
デフォルトコンストラクタ
public SQLiteCommand( SQLiteConnection connection );
概要
Initializes the command and associates it with the specified connection.
指定された接続を持つコマンドと仲間それを初期設定する。
パラメーター
connection
The connection to associate with the command
コマンドとの仲間との接続
public SQLiteCommand( string commandText );
概要
Initializes the command with the given command text
与えられたコマンドテキストによってコマンドを初期設定する
パラメーター
commandText:
The SQL command text
SQLコマンドテキスト
public SQLiteCommand( string commandText, SQLiteConnection connection );
概要
Initializes the command with the given SQL command text and attach the command to the specified connection.
与えられたSQLコマンドテキストと付属コマンドを初期設定する 指定された接続へのコマンド 。
パラメーター
commandText
The SQL command text
SQLコマンドテキスト
connection
The connection to associate with the command
コマンドとの仲間との接続
public SQLiteCommand( string commandText, SQLiteConnection connection, SQLiteTransaction transaction );
概要
Initializes a command with the given SQL, connection and transaction
与えられたSQL、接続、およびトランザクションによって、コマンドを初期設定する
パラメーター
commandText
The SQL command text
SQLコマンドテキスト
connection
The connection to associate with the command
コマンドとの仲間との接続
transaction
The transaction the command should be associated with
コマンドが関連するべきトランザクション
プロパティ
▲上へ
public override string CommandText { get set }
概要
The SQL command text associated with the command
SQLコマンドテキストはコマンドと結合した
public override int CommandTimeout { get set }
概要
The amount of time to wait for the connection to become available before erroring out
接続が、外でerroringする前に入手可能になることを待つ時間の量
public override CommandType CommandType { get set }
概要
The type of the command. SQLite only supports CommandType.Text
コマンドのタイプ。SQLiteは命令Type.Textをサポートするだけである
public SQLiteConnection Connection { get set }
概要
The connection associated with this command
接続はこのコマンドと結合した
protected override DbConnection DbConnection { get set }
概要
Forwards to the local Connection property
ローカルな接続プロパティへの前
protected override DbParameterCollection DbParameterCollection { get }
概要
Forwards to the local Parameters property
ローカルなパラメータプロパティへの前
protected override DbTransaction DbTransaction { get set }
概要
Forwards to the local Transaction property
ローカルなトランザクションプロパティへの前
public override bool DesignTimeVisible { get set }
概要
Determines if the command is visible at design time. Defaults to True.
デザイン時間にコマンドが見えるかどうかを決定する。真へのデフォルト。
public SQLiteParameterCollection Parameters { get }
概要
Returns the SQLiteParameterCollection for the given command
与えられたコマンドのためのリターンSQLiteParameterCollection
public SQLiteTransaction Transaction { get set }
概要
The transaction associated with this command. SQLite only supports one transaction per connection, so this property forwards to the command's underlying connection.
トランザクションはこのコマンドと結合した。SQLiteは1回の接続あたり1回のトランザクションをサポートするだけである。従って、このプロパティはコマンドの潜在的な接続に転送する。
public override UpdateRowSource UpdatedRowSource { get set }
概要
Sets the method the SQLiteCommandBuilder uses to determine how to update inserted or updated rows in a DataTable.
方法 どのように、DataTableの挿入されたまたはアップデートされた列をアップデートするかを決めるためにSQLiteCommandBuilderが用いるセット。
メソッド
▲上へ
protected override DbDataReader ExecuteDbDataReader( CommandBehavior behavior );
概要
Creates a new SQLiteDataReader to execute/iterate the array of SQLite prepared statements
SQLite準備ステートメントの配列を実行/繰返すために、新しいSQLiteDataReaderを作成する
パラメーター
behavior
The behavior the data reader should adopt
データリーダが採用するべき行動
戻り値
Returns a SQLiteDataReader object
リターン SQLiteDataReaderオブジェクト
protected override DbParameter CreateDbParameter();
概要
Forwards to the local CreateParameter() function
ローカルなCreateParameter()機能への前
protected override void Dispose( bool disposing );
概要
Disposes of the command and clears all member variables
コマンドを処理し、すべてのメンバー変数をクリアする
パラメーター
disposing
Whether or not the class is being explicitly or implicitly disposed
クラスが明示的に、または暗黙に置かれているかどうかにかかわらず
public int ExecuteNonQuery( CommandBehavior behavior );
概要
Execute the command and return the number of rows inserted/updated affected by it.
コマンドを実行し、それによって影響されて、挿入/アップデートされた列の数を戻しなさい。
パラメーター
behavior
The flags to be associated with the reader.
リーダと関連するフラグ。
戻り値
The number of rows inserted/updated affected by it.
挿入/アップデートされた列の数は、それによって影響した
public object Clone();
概要
Clones a command, including all its parameters
すべてのそのパラメータを含むクローンコマンド
戻り値
A new SQLiteCommand with the same commandtext, connection and parameters
同じcommandtext、接続、およびパラメータを持つ新しいSQLiteCommand
public object ExecuteScalar( CommandBehavior behavior );
概要
Execute the command and return the first column of the first row of the resultset (if present), or null if no resultset was returned.
コマンドを実行し、もしresultsetが全然戻されなかったならば、resultset(もし出席するならば)、または零の最初の列の最初のカラムを戻しなさい。
パラメーター
behavior
The flags to be associated with the reader.
リーダと関連するフラグ。
戻り値
The first column of the first row of the first resultset from the query.
質問からの最初のresultsetの最初の列の最初のカラム。
public override int ExecuteNonQuery();
概要
Execute the command and return the number of rows inserted/updated affected by it.
コマンドを実行し、それによって影響されて、挿入/アップデートされた列の数を戻しなさい。
戻り値
The number of rows inserted/updated affected by it.
挿入/アップデートされた列の数は、それによって影響した。
public override object ExecuteScalar();
概要
Execute the command and return the first column of the first row of the resultset (if present), or null if no resultset was returned.
コマンドを実行し、もしresultsetが全然戻されなかったならば、resultset(もし出席するならば)、または零の最初の列の最初のカラムを戻しなさい。
戻り値
The first column of the first row of the first resultset from the query.
質問からの最初のresultsetの最初の列の最初のカラム。
public override void Cancel();
概要
Not implemented
実施されない
public override void Prepare();
概要
Does nothing. Commands are prepared as they are executed the first time, and kept in prepared state afterwards.
する 何も 。それらが実行されると、コマンドは、後に、準備された状態において準備されて はじめて 、保持される。
public SQLiteDataReader ExecuteReader( CommandBehavior behavior );
概要
Overrides the default behavior to return a SQLiteDataReader specialization class
SQLiteDataReader特殊化クラスを戻すために、デフォルト行動を無効にする
パラメーター
behavior
The flags to be associated with the reader.
リーダと関連するフラグ。
戻り値
A SQLiteDataReader
SQLiteDataReader
public SQLiteDataReader ExecuteReader();
概要
Overrides the default behavior of DbDataReader to return a specialized SQLiteDataReader class
専門的なSQLiteDataReaderクラスを戻すために、DbDataReaderのデフォルト行動を無効にする
戻り値
A SQLiteDataReader
SQLiteDataReader
public SQLiteParameter CreateParameter();
概要
Create a new parameter
新しいパラメータを作成しなさい
public static object Execute( string commandText, SQLiteExecuteType executeType, CommandBehavior commandBehavior, string connectionString, params object[] args );
概要
This method creates a new connection, executes the query using the given execution type and command behavior, closes the connection unless a data reader is created, and returns the results. If the connection string is null, a temporary in-memory database connection will be used.
この方法は新しい接続を作成し、与えられた実行タイプを使って質問を実行し、データリーダが作成されない限り、コマンド行動は接続を閉じて、結果を戻す。もし接続ストリングが無効ならば、臨時雇いメモリー間データベース接続は使われる。
パラメーター
commandText
The text of the command to be executed.
実行されるコマンドのテキスト。
executeType
The execution type for the command. This is used to determine which method of the command object to call, which then determines the type of results returned, if any.
コマンドのための実行タイプ。これは、その時、戻された結果のタイプを決定する呼び出しを決定する どの するコマンドオブジェクトの方法 ために使用される もしあれば 。
commandBehavior
The command behavior flags for the command.
コマンド行動はコマンドのためにたれ下がる。
connectionString
The connection string to the database to be opened, used, and closed. If this parameter is null, a temporary in-memory databse will be used.
開かれて、使われて、閉まったデータベースへの接続ストリング。もしこのパラメータが無効ならば、臨時雇いメモリー間databseは使われる。
args
The SQL parameter values to be used when building the command object to be executed, if any.
SQLパラメータは、もしあれば実行されるコマンドオブジェクトを築く時に、使われるように見積もる。
戻り値
The results of the query -OR- null if no results were produced from the given execution type.
質問-OR-の結果 もし与えられた実行タイプからの全然結果の不生み出し零 。
public static object Execute( string commandText, SQLiteExecuteType executeType, string connectionString, params object[] args );
概要
This method creates a new connection, executes the query using the given execution type, closes the connection, and returns the results. If the connection string is null, a temporary in-memory database connection will be used.
この方法は新しい接続を作成し、与えられた実行タイプを使って質問を実行し、接続を閉じて、結果を戻す。もし接続ストリングが無効ならば、臨時雇いメモリー間データベース接続は使われる。
パラメーター
commandText
The text of the command to be executed.
実行されるコマンドのテキスト。
executeType
The execution type for the command. This is used to determine which method of the command object to call, which then determines the type of results returned, if any.
コマンドのための実行タイプ。これは、その時、戻された結果のタイプを決定する呼び出しを決定する どの するコマンドオブジェクトの方法 ために使用される もしあれば 。
connectionString
The connection string to the database to be opened, used, and closed. If this parameter is null, a temporary in-memory databse will be used.
開かれて、使われて、閉まったデータベースへの接続ストリング。もしこのパラメータが無効ならば、臨時雇いメモリー間databseは使われる。
args
The SQL parameter values to be used when building the command object to be executed, if any.
SQLパラメータは、もしあれば実行されるコマンドオブジェクトを築く時に、使われるように見積もる。
戻り値
The results of the query -OR- null if no results were produced from the given execution type.
質問-OR-の結果 もし与えられた実行タイプからの全然結果の不生み出し零 。
public void Reset( bool clearBindings, bool ignoreErrors );
概要
This method resets all the prepared statements held by this instance back to their initial states, ready to be re-executed.
この方法は、すでに 再実行される 、この例によってそれらの初期の州に抑制されたすべての準備されたステートメントをリセットしている。
パラメーター
clearBindings
Non-zero if the parameter bindings should be cleared as well.
もしその上パラメータバインディングの片付け不 0。
ignoreErrors
If this is zero, a System.Data.SQLite.SQLiteException may be thrown for any unsuccessful return codes from the native library; otherwise, a System.Data.SQLite.SQLiteException will only be thrown if the connection or its state is invalid.
もしこれが0であるならば、System.Data.SQLite.SQLiteExceptionはどのような不成功なリターンコードのためにでもネイティブのライブラリから投げられるであろう;さもなければ、もし接続またはその状態が無効ならば、System.Data.SQLite.SQLiteExceptionは投げられるだけである。
public void Reset();
概要
This method resets all the prepared statements held by this instance back to their initial states, ready to be re-executed.
この方法は、すでに 再実行される 、この例によってそれらの初期の州に抑制されたすべての準備されたステートメントをリセットしている。
public void VerifyOnly();
概要
Verifies that all SQL queries associated with the current command text can be successfully compiled. A System.Data.SQLite.SQLiteException will be raised if any errors occur.
現在のコマンドテキストと関連したすべてのSQL質問が首尾よく編集できることを確認する。もしいくらかのエラーが起こるならば、System.Data.SQLite.SQLiteExceptionは上げられる。