SqlDataAdapter クラス
定義
public ref class SqlDataAdapter sealed : System::Data::Common::DbDataAdapter, ICloneable
public ref class SqlDataAdapter sealed : System::Data::Common::DbDataAdapter, ICloneable, System::Data::IDbDataAdapter
public sealed class SqlDataAdapter : System.Data.Common.DbDataAdapter, ICloneable
public sealed class SqlDataAdapter : System.Data.Common.DbDataAdapter, ICloneable, System.Data.IDbDataAdapter
type SqlDataAdapter = class
inherit DbDataAdapter
interface IDbDataAdapter
interface IDataAdapter
interface ICloneable
type SqlDataAdapter = class
inherit DbDataAdapter
interface IDataAdapter
interface IDbDataAdapter
interface ICloneable
Public NotInheritable Class SqlDataAdapter
Inherits DbDataAdapter
Implements ICloneable
Public NotInheritable Class SqlDataAdapter
Inherits DbDataAdapter
Implements ICloneable, IDbDataAdapter
- 継承
- 実装
例
次の例では、、、およびを使用し SqlCommand SqlDataAdapter て、 SqlConnection データベースからレコードを選択し、 DataSet 選択した行をに設定します。The following example uses the SqlCommand, SqlDataAdapter, and SqlConnection to select records from a database and populate a DataSet with the selected rows. 次に、入力された DataSet が返されます。The filled DataSet is then returned. これを実現するために、メソッドには、初期化された DataSet 、接続文字列、および TRANSACT-SQL SELECT ステートメントであるクエリ文字列が渡されます。To accomplish this, the method is passed an initialized DataSet, a connection string, and a query string that is a Transact-SQL SELECT statement.
private static DataSet SelectRows(DataSet dataset,
string connectionString,string queryString)
{
using (SqlConnection connection =
new SqlConnection(connectionString))
{
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand(
queryString, connection);
adapter.Fill(dataset);
return dataset;
}
}
Public Function SelectRows( _
ByVal dataSet As DataSet, ByVal connectionString As String, _
ByVal queryString As String) As DataSet
Using connection As New SqlConnection(connectionString)
Dim adapter As New SqlDataAdapter()
adapter.SelectCommand = New SqlCommand( _
queryString, connection)
adapter.Fill(dataSet)
Return dataSet
End Using
End Function
注釈
は、 SqlDataAdapter DataSet データの取得と保存のためのとの SQL Server 間のブリッジとして機能します。The SqlDataAdapter, serves as a bridge between a DataSet and SQL Server for retrieving and saving data. は、データソースのデータと SqlDataAdapter Fill 一致するように内のデータを変更し、データソースに DataSet 対して Update DataSet 適切な transact-sql ステートメントを使用して、データソース内のデータを変更するマッピングによって、このブリッジを提供します。The SqlDataAdapter provides this bridge by mapping Fill, which changes the data in the DataSet to match the data in the data source, and Update, which changes the data in the data source to match the data in the DataSet, using the appropriate Transact-SQL statements against the data source. 更新は、行単位で実行されます。The update is performed on a by-row basis. 挿入、変更、および削除された行ごとに、メソッドは、その行に対して Update 実行された変更の種類 ( Insert
、 Update
、または) を決定し Delete
ます。For every inserted, modified, and deleted row, the Update method determines the type of change that has been performed on it (Insert
, Update
, or Delete
). 変更の種類によっては、 Insert
、 Update
、またはコマンドテンプレートが実行され、変更された Delete
行がデータソースに反映されます。Depending on the type of change, the Insert
, Update
, or Delete
command template executes to propagate the modified row to the data source. でがいっぱいになると、 SqlDataAdapter DataSet 返されたデータに必要なテーブルと列が作成されます (存在しない場合)。When the SqlDataAdapter fills a DataSet, it creates the necessary tables and columns for the returned data if they do not already exist. ただし、 MissingSchemaAction プロパティがに設定されていない場合、主キーの情報は、暗黙的に作成されるスキーマには含まれません AddWithKey 。However, primary key information is not included in the implicitly created schema unless the MissingSchemaAction property is set to AddWithKey. また、 SqlDataAdapter DataSet を使用してデータを読み込む前に、主キー情報を含むのスキーマを作成することもでき FillSchema
ます。You may also have the SqlDataAdapter create the schema of the DataSet, including primary key information, before filling it with data using FillSchema
. 詳細については、「 DataSet への既存の制約の追加」を参照してください。For more information, see Adding Existing Constraints to a DataSet.
SqlDataAdapter は SqlConnection 、 SqlCommand SQL Server データベースに接続するときのパフォーマンスを向上させるために、およびと組み合わせて使用します。SqlDataAdapter is used in conjunction with SqlConnection and SqlCommand to increase performance when connecting to a SQL Server database.
注意
SQL Server のストアド プロシージャで、DataAdapter
を使用してデータを編集または削除する場合、ストアド プロシージャの定義に SET NOCOUNT ON は使用しないでください。If you are using SQL Server stored procedures to edit or delete data using a DataAdapter
, make sure that you do not use SET NOCOUNT ON in the stored procedure definition. 処理された行数がゼロとして返され、DataAdapter
によってコンカレンシーの競合として解釈されてしまいます。This causes the rows affected count returned to be zero, which the DataAdapter
interprets as a concurrency conflict. この場合、DBConcurrencyException がスローされます。In this event, a DBConcurrencyException will be thrown.
には、 SqlDataAdapter SelectCommand InsertCommand DeleteCommand UpdateCommand TableMappings データの読み込みと更新を容易にする、、、、およびの各プロパティも含まれています。The SqlDataAdapter also includes the SelectCommand, InsertCommand, DeleteCommand, UpdateCommand, and TableMappings properties to facilitate the loading and updating of data.
のインスタンスが作成されると SqlDataAdapter 、読み取り/書き込みプロパティが初期値に設定されます。When an instance of SqlDataAdapter is created, the read/write properties are set to initial values. これらの値の一覧については、「コンストラクター」を参照してください SqlDataAdapter 。For a list of these values, see the SqlDataAdapter constructor.
InsertCommand、 DeleteCommand 、およびは、 UpdateCommand パラメーター機構を使用して、変更されたすべての行の個々の値を自動的に入力する汎用テンプレートです。The InsertCommand, DeleteCommand, and UpdateCommand are generic templates that are automatically filled with individual values from every modified row through the parameters mechanism.
でデータソースに反映されるすべての列について、 Update 、、またはにパラメーターを追加する必要があり InsertCommand
UpdateCommand
DeleteCommand
ます。For every column that you propagate to the data source on Update, a parameter should be added to the InsertCommand
, UpdateCommand
, or DeleteCommand
. SourceColumnオブジェクトのプロパティは、 DbParameter 列の名前に設定する必要があります。The SourceColumn property of the DbParameter object should be set to the name of the column. この設定は、パラメーターの値が手動では設定されず、現在処理されている行の特定の列から取得されることを示します。This setting indicates that the value of the parameter is not set manually, but is taken from the particular column in the currently processed row.
注意
InvalidOperationException Fill メソッドが呼び出され、テーブルにクライアントコンピューターで使用できないユーザー定義型が含まれている場合、が発生します。An InvalidOperationException will occur if the Fill method is called and the table contains a user-defined type that is not available on the client computer. 詳細については、「 CLR ユーザー定義型」を参照してください。For more information, see CLR User-Defined Types.
コンストラクター
SqlDataAdapter() |
SqlDataAdapter クラスの新しいインスタンスを初期化します。Initializes a new instance of the SqlDataAdapter class. |
SqlDataAdapter(SqlCommand) |
SqlDataAdapter プロパティとして SqlCommand を指定して、SelectCommand クラスの新しいインスタンスを初期化します。Initializes a new instance of the SqlDataAdapter class with the specified SqlCommand as the SelectCommand property. |
SqlDataAdapter(String, SqlConnection) |
SqlDataAdapter オブジェクトと SelectCommand オブジェクトを指定して、SqlConnection クラスの新しいインスタンスを初期化します。Initializes a new instance of the SqlDataAdapter class with a SelectCommand and a SqlConnection object. |
SqlDataAdapter(String, String) |
SqlDataAdapter と接続文字列を指定して、SelectCommand クラスの新しいインスタンスを初期化します。Initializes a new instance of the SqlDataAdapter class with a SelectCommand and a connection string. |
フィールド
DefaultSourceTableName |
DataAdapter オブジェクトがテーブル マップに使用する既定の名前。The default name used by the DataAdapter object for table mappings. (継承元 DbDataAdapter) |
プロパティ
AcceptChangesDuringFill |
Fill 操作中に DataTable に DataRow が追加された後で、その行に対して AcceptChanges() を呼び出すかどうかを示す値を取得または設定します。Gets or sets a value indicating whether AcceptChanges() is called on a DataRow after it is added to the DataTable during any of the Fill operations. (継承元 DataAdapter) |
AcceptChangesDuringUpdate |
AcceptChanges() で Update(DataSet) が呼び出されるかどうかを取得または設定します。Gets or sets whether AcceptChanges() is called during a Update(DataSet). (継承元 DataAdapter) |
CanRaiseEvents |
コンポーネントがイベントを発生させることがきるかどうかを示す値を取得します。Gets a value indicating whether the component can raise an event. (継承元 Component) |
Container |
IContainer を含む Component を取得します。Gets the IContainer that contains the Component. (継承元 Component) |
ContinueUpdateOnError |
行の更新中にエラーが発生したときに、例外を生成するかどうかを指定する値を取得または設定します。Gets or sets a value that specifies whether to generate an exception when an error is encountered during a row update. (継承元 DataAdapter) |
DeleteCommand |
データ セットからレコードを削除するための Transact-SQL ステートメントまたはストアド プロシージャを取得または設定します。Gets or sets a Transact-SQL statement or stored procedure to delete records from the data set. |
DesignMode |
Component が現在デザイン モードかどうかを示す値を取得します。Gets a value that indicates whether the Component is currently in design mode. (継承元 Component) |
Events |
Component に結び付けられているイベント ハンドラーのリストを取得します。Gets the list of event handlers that are attached to this Component. (継承元 Component) |
FillCommandBehavior |
データ アダプターにデータを読み込むコマンドの動作を取得または設定します。Gets or sets the behavior of the command used to fill the data adapter. (継承元 DbDataAdapter) |
FillLoadOption |
アダプターが LoadOption から DataTable にデータを読み込む方法を決定する DbDataReader を取得または設定します。Gets or sets the LoadOption that determines how the adapter fills the DataTable from the DbDataReader. (継承元 DataAdapter) |
InsertCommand |
データ ソースに新しいレコードを挿入するための Transact-SQL ステートメントまたはストアド プロシージャを取得または設定します。Gets or sets a Transact-SQL statement or stored procedure to insert new records into the data source. |
MissingMappingAction |
一致するテーブルまたは列が受信データに含まれていない場合に実行するアクションを決定します。Determines the action to take when incoming data does not have a matching table or column. (継承元 DataAdapter) |
MissingSchemaAction |
既存の DataSet スキーマが受信データと一致しないときに実行するアクションを決定します。Determines the action to take when existing DataSet schema does not match incoming data. (継承元 DataAdapter) |
ReturnProviderSpecificTypes |
|
SelectCommand |
データ ソース内のレコードを選択するための Transact-SQL ステートメントまたはストアド プロシージャを取得または設定します。Gets or sets a Transact-SQL statement or stored procedure used to select records in the data source. |
Site |
Component の ISite を取得または設定します。Gets or sets the ISite of the Component. (継承元 Component) |
TableMappings |
ソース テーブルと DataTable との間のマスター マップを提供するコレクションを取得します。Gets a collection that provides the master mapping between a source table and a DataTable. (継承元 DataAdapter) |
UpdateBatchSize |
サーバーとの 1 回のラウンドトリップで処理される行数を取得または設定します。Gets or sets the number of rows that are processed in each round-trip to the server. |
UpdateBatchSize |
バッチ処理サポートを有効にするかどうか、および、1 回のバッチで実行可能なコマンド数を指定する値を取得または設定します。Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch. (継承元 DbDataAdapter) |
UpdateCommand |
データ ソース内のレコードを更新するための Transact-SQL ステートメントまたはストアド プロシージャを取得または設定します。Gets or sets a Transact-SQL statement or stored procedure used to update records in the data source. |
メソッド
AddToBatch(IDbCommand) |
IDbCommand を現在のバッチに追加します。Adds a IDbCommand to the current batch. (継承元 DbDataAdapter) |
ClearBatch() |
バッチからすべての IDbCommand オブジェクトを削除します。Removes all IDbCommand objects from the batch. (継承元 DbDataAdapter) |
CloneInternals() |
互換性のために残されています。
互換性のために残されています。
互換性のために残されています。
この DataAdapter のインスタンスのコピーを作成します。Creates a copy of this instance of DataAdapter. (継承元 DataAdapter) |
CreateObjRef(Type) |
リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (継承元 MarshalByRefObject) |
CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping) |
RowUpdatedEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the RowUpdatedEventArgs class. (継承元 DbDataAdapter) |
CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) |
RowUpdatingEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the RowUpdatingEventArgs class. (継承元 DbDataAdapter) |
CreateTableMappings() |
新しい DataTableMappingCollection を作成します。Creates a new DataTableMappingCollection. (継承元 DataAdapter) |
Dispose() |
Component によって使用されているすべてのリソースを解放します。Releases all resources used by the Component. (継承元 Component) |
Dispose(Boolean) |
DbDataAdapter によって使用されているアンマネージド リソースを解放し、オプションでマネージド リソースも解放します。Releases the unmanaged resources used by the DbDataAdapter and optionally releases the managed resources. (継承元 DbDataAdapter) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
ExecuteBatch() |
現在のバッチを実行します。Executes the current batch. (継承元 DbDataAdapter) |
Fill(DataSet) |
DataSet 内の行を追加または更新します。Adds or refreshes rows in the DataSet. (継承元 DbDataAdapter) |
Fill(DataSet, Int32, Int32, String) |
DataSet 名および DataSet 名を使用して、データ ソース内の行と一致するように、DataTable 内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names. (継承元 DbDataAdapter) |
Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior) |
DataSet 名、ソース テーブル名、コマンド文字列、およびコマンド動作を使用して、データ ソース内の列と一致するように、DataSet 内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and source table names, command string, and command behavior. (継承元 DbDataAdapter) |
Fill(DataSet, String) |
DataSet 名および DataSet 名を使用して、データ ソース内の列と一致するように DataTable 内の行を追加または更新します。Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names. (継承元 DbDataAdapter) |
Fill(DataSet, String, IDataReader, Int32, Int32) |
DataSet、DataTable、IDataReader の名前を使用して、データ ソース内の行と一致するように、DataSet 内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet, DataTable, and IDataReader names. (継承元 DbDataAdapter) |
Fill(DataTable) |
DataSet 名を使用して、データ ソース内の行と一致するように、DataTable 内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataTable name. (継承元 DbDataAdapter) |
Fill(DataTable, IDataReader) |
指定した DataTable と IDataReader の名前を使用して、データ ソース内の行と一致するように、DataTable 内の行を追加または更新します。Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable and IDataReader names. (継承元 DbDataAdapter) |
Fill(DataTable, IDbCommand, CommandBehavior) |
指定した DataTable、DataTable、および IDbCommand を使用して、データ ソース内の行と一致するように、CommandBehavior 内の行を追加または更新します。Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable, IDbCommand and CommandBehavior. (継承元 DbDataAdapter) |
Fill(DataTable[], IDataReader, Int32, Int32) |
データ ソース内の行と一致するように、DataTable オブジェクトのコレクション内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the collection of DataTable objects to match those in the data source. (継承元 DataAdapter) |
Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior) |
DataSet 名および DataSet 名を使用して、データ ソース内の行と一致するように、DataTable 内の指定した範囲の行を追加または更新します。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names. (継承元 DbDataAdapter) |
Fill(Int32, Int32, DataTable[]) |
指定したレコード位置で開始し、指定した最大数のレコードを読み込んで、データ ソース内の行と一致するように、DataTable 内の行を追加または更新します。Adds or refreshes rows in a DataTable to match those in the data source starting at the specified record and retrieving up to the specified maximum number of records. (継承元 DbDataAdapter) |
FillSchema(DataSet, SchemaType) |
"Table" という名前の DataTable を指定された DataSet に追加し、指定された SchemaType に基づいて、データ ソースにあるスキーマと一致するようにスキーマを構成します。Adds a DataTable named "Table" to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType. (継承元 DbDataAdapter) |
FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior) |
指定した DataTable に DataSet を追加し、指定した SchemaType に基づいて、データ ソース内のスキーマと一致するようにスキーマを設定します。Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType. (継承元 DbDataAdapter) |
FillSchema(DataSet, SchemaType, String) |
指定した DataTable に DataSet を追加し、指定した SchemaType および DataTable に基づいて、データ ソース内のスキーマと一致するようにスキーマを設定します。Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based upon the specified SchemaType and DataTable. (継承元 DbDataAdapter) |
FillSchema(DataSet, SchemaType, String, IDataReader) |
DataTable を指定した DataSet に追加します。Adds a DataTable to the specified DataSet. (継承元 DataAdapter) |
FillSchema(DataTable, SchemaType) |
指定した DataTable に基いて、指定した SchemaType のスキーマを設定します。Configures the schema of the specified DataTable based on the specified SchemaType. (継承元 DbDataAdapter) |
FillSchema(DataTable, SchemaType, IDataReader) |
DataTable を指定した DataSet に追加します。Adds a DataTable to the specified DataSet. (継承元 DataAdapter) |
FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) |
指定した DataTable、コマンド文字列、および SchemaType 値に基づいて、指定した CommandBehavior のスキーマを設定します。Configures the schema of the specified DataTable based on the specified SchemaType, command string, and CommandBehavior values. (継承元 DbDataAdapter) |
GetBatchedParameter(Int32, Int32) |
現在のバッチのコマンドの 1 つから IDataParameter を返します。Returns a IDataParameter from one of the commands in the current batch. (継承元 DbDataAdapter) |
GetBatchedRecordsAffected(Int32, Int32, Exception) |
バッチ更新内の、個々の更新の試行に関する情報を返します。Returns information about an individual update attempt within a larger batched update. (継承元 DbDataAdapter) |
GetFillParameters() |
SQL SELECT ステートメントの実行時にユーザーが設定したパラメーターを取得します。Gets the parameters set by the user when executing an SQL SELECT statement. (継承元 DbDataAdapter) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetLifetimeService() |
対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。Retrieves the current lifetime service object that controls the lifetime policy for this instance. (継承元 MarshalByRefObject) |
GetService(Type) |
Component またはその Container で提供されるサービスを表すオブジェクトを返します。Returns an object that represents a service provided by the Component or by its Container. (継承元 Component) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
HasTableMappings() |
DataTableMappingCollection が作成されているかどうかを示します。Indicates whether a DataTableMappingCollection has been created. (継承元 DataAdapter) |
InitializeBatching() |
DbDataAdapter のバッチ処理を初期化します。Initializes batching for the DbDataAdapter. (継承元 DbDataAdapter) |
InitializeLifetimeService() |
このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。Obtains a lifetime service object to control the lifetime policy for this instance. (継承元 MarshalByRefObject) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
MemberwiseClone(Boolean) |
現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。Creates a shallow copy of the current MarshalByRefObject object. (継承元 MarshalByRefObject) |
OnFillError(FillErrorEventArgs) |
FillError イベントを発生させます。Raises the FillError event. (継承元 DbDataAdapter) |
OnRowUpdated(RowUpdatedEventArgs) |
.NET データ プロバイダーの |
OnRowUpdating(RowUpdatingEventArgs) |
.NET データ プロバイダーの |
ResetFillLoadOption() |
FillLoadOption を既定の状態にリセットし、Fill(DataSet) で AcceptChangesDuringFill を受け入れるようにします。Resets FillLoadOption to its default state and causes Fill(DataSet) to honor AcceptChangesDuringFill. (継承元 DataAdapter) |
ShouldSerializeAcceptChangesDuringFill() |
AcceptChangesDuringFill プロパティを永続化する必要があるかどうかを判断します。Determines whether the AcceptChangesDuringFill property should be persisted. (継承元 DataAdapter) |
ShouldSerializeFillLoadOption() |
FillLoadOption プロパティを永続化する必要があるかどうかを判断します。Determines whether the FillLoadOption property should be persisted. (継承元 DataAdapter) |
ShouldSerializeTableMappings() |
1 つ以上の DataTableMapping オブジェクトが存在し、それらを永続化する必要があるかどうかを確認します。Determines whether one or more DataTableMapping objects exist and they should be persisted. (継承元 DataAdapter) |
TerminateBatching() |
DbDataAdapter のバッチ処理を終了します。Ends batching for the DbDataAdapter. (継承元 DbDataAdapter) |
ToString() |
Component の名前 (存在する場合) を格納する String を返します。Returns a String containing the name of the Component, if any. このメソッドはオーバーライドできません。This method should not be overridden. (継承元 Component) |
Update(DataRow[]) |
指定した DataSet 内の配列での挿入行、更新行、または削除行に対して INSERT、UPDATE、または DELETE ステートメントを個別に実行することで、データベースの値を更新します。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array in the DataSet. (継承元 DbDataAdapter) |
Update(DataRow[], DataTableMapping) |
指定した DataSet オブジェクトの配列内の挿入行、更新行、または削除行に対して INSERT、UPDATE、または DELETE ステートメントを個別に実行することで、データベースの値を更新します。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array of DataSet objects. (継承元 DbDataAdapter) |
Update(DataSet) |
指定した DataSet での挿入行、更新行、または削除行に対して INSERT、UPDATE、または DELETE ステートメントを個別に実行することで、データベースの値を更新します。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataSet. (継承元 DbDataAdapter) |
Update(DataSet, String) |
DataSet 内の指定した DataTable 名を持つ挿入行、更新行、または削除行に対して INSERT、UPDATE、または DELETE ステートメントを個別に実行することで、データベースの値を更新します。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet with the specified DataTable name. (継承元 DbDataAdapter) |
Update(DataTable) |
指定した DataTable での挿入行、更新行、または削除行に対して INSERT、UPDATE、または DELETE ステートメントを個別に実行することで、データベースの値を更新します。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataTable. (継承元 DbDataAdapter) |
イベント
Disposed |
Dispose() メソッドの呼び出しによってコンポーネントが破棄されるときに発生します。Occurs when the component is disposed by a call to the Dispose() method. (継承元 Component) |
FillError |
格納操作中にエラーが発生したときに返されます。Returned when an error occurs during a fill operation. (継承元 DbDataAdapter) |
RowUpdated |
Update(DataSet) 処理中に、データ ソースに対してコマンドが実行された後に発生します。Occurs during Update(DataSet) after a command is executed against the data source. 更新が試行されると、このイベントが発生します。The attempt to update is made, so the event fires. |
RowUpdating |
Update(DataSet) 処理中に、データ ソースに対してコマンドが実行される前に発生します。Occurs during Update(DataSet) before a command is executed against the data source. 更新が試行されると、このイベントが発生します。The attempt to update is made, so the event fires. |
明示的なインターフェイスの実装
ICloneable.Clone() |
このメンバーの詳細については、「Clone()」をご覧ください。For a description of this member, see Clone(). |
IDataAdapter.TableMappings |
ソース テーブルをデータセット テーブルに割り当てる方法を示します。Indicates how a source table is mapped to a dataset table. (継承元 DataAdapter) |
IDbDataAdapter.DeleteCommand |
このメンバーの詳細については、「DeleteCommand」をご覧ください。For a description of this member, see DeleteCommand. |
IDbDataAdapter.DeleteCommand |
データ セットからレコードを削除する SQL ステートメントを取得または設定します。Gets or sets an SQL statement for deleting records from the data set. (継承元 DbDataAdapter) |
IDbDataAdapter.InsertCommand |
このメンバーの詳細については、「InsertCommand」をご覧ください。For a description of this member, see InsertCommand. |
IDbDataAdapter.InsertCommand |
データ ソースに新しいレコードを挿入する SQL ステートメントを取得または設定します。Gets or sets an SQL statement used to insert new records into the data source. (継承元 DbDataAdapter) |
IDbDataAdapter.SelectCommand |
このメンバーの詳細については、「SelectCommand」をご覧ください。For a description of this member, see SelectCommand. |
IDbDataAdapter.SelectCommand |
データ ソース内のレコードを選択する SQL ステートメントを取得または設定します。Gets or sets an SQL statement used to select records in the data source. (継承元 DbDataAdapter) |
IDbDataAdapter.UpdateCommand |
このメンバーの詳細については、「UpdateCommand」をご覧ください。For a description of this member, see UpdateCommand. |
IDbDataAdapter.UpdateCommand |
データ ソース内のレコードを更新する SQL ステートメントを取得または設定します。Gets or sets an SQL statement used to update records in the data source. (継承元 DbDataAdapter) |