C# Class Community.CsharpSqlite.SQLiteClient.SqliteDataAdapter

Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
Inheritance: System.Data.Common.DbDataAdapter, IDbDataAdapter
显示文件 Open project: koush/csharp-sqlite Class Usage Examples

Public Methods

Method Description
SqliteDataAdapter ( ) : System

Initializes a new instance of the SqliteDataAdapter class.

SqliteDataAdapter ( DbCommand selectCommand ) : System

Initializes a new instance of the SqliteDataAdapter class with the specified SqliteCommand as the SelectCommand property.

SqliteDataAdapter ( IDbCommand selectCommand ) : System
SqliteDataAdapter ( string selectCommandText, Community.CsharpSqlite.SQLiteClient.SqliteConnection connection ) : System

Initializes a new instance of the SqliteDataAdapter class with a SelectCommand and a SqliteConnection object.

SqliteDataAdapter ( string selectCommandText, string connectionString ) : System

Initializes a new instance of the SqliteDataAdapter class with a SelectCommand and a connection string.

Protected Methods

Method Description
CreateRowUpdatedEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatedEventArgs

Initializes a new instance of the RowUpdatedEventArgs class.

CreateRowUpdatingEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatingEventArgs

OnRowUpdated ( RowUpdatedEventArgs args ) : void

Raises the RowUpdating event of Sqlite data provider.

OnRowUpdating ( RowUpdatingEventArgs args ) : void

Raises the RowUpdated event of a Sqlite data provider.

Method Details

CreateRowUpdatedEvent() protected method

Initializes a new instance of the RowUpdatedEventArgs class.
protected CreateRowUpdatedEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatedEventArgs
dataRow System.Data.DataRow The DataRow used to update the data source.
command IDbCommand The IDbCommand executed during the Update.
statementType StatementType Whether the command is an UPDATE, INSERT, DELETE, or SELECT statement.
tableMapping System.Data.Common.DataTableMapping A DataTableMapping object.
return System.Data.Common.RowUpdatedEventArgs

CreateRowUpdatingEvent() protected method

protected CreateRowUpdatingEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatingEventArgs
dataRow System.Data.DataRow The DataRow used to update the data source.
command IDbCommand The IDbCommand executed during the Update.
statementType StatementType Whether the command is an UPDATE, INSERT, DELETE, or SELECT statement.
tableMapping System.Data.Common.DataTableMapping A DataTableMapping object.
return System.Data.Common.RowUpdatingEventArgs

OnRowUpdated() protected method

Raises the RowUpdating event of Sqlite data provider.
protected OnRowUpdated ( RowUpdatedEventArgs args ) : void
args System.Data.Common.RowUpdatedEventArgs An RowUpdatingEventArgs that contains the event data.
return void

OnRowUpdating() protected method

Raises the RowUpdated event of a Sqlite data provider.
protected OnRowUpdating ( RowUpdatingEventArgs args ) : void
args System.Data.Common.RowUpdatingEventArgs A RowUpdatedEventArgs that contains the event data.
return void

SqliteDataAdapter() public method

Initializes a new instance of the SqliteDataAdapter class.
public SqliteDataAdapter ( ) : System
return System

SqliteDataAdapter() public method

Initializes a new instance of the SqliteDataAdapter class with the specified SqliteCommand as the SelectCommand property.
public SqliteDataAdapter ( DbCommand selectCommand ) : System
selectCommand System.Data.Common.DbCommand
return System

SqliteDataAdapter() public method

public SqliteDataAdapter ( IDbCommand selectCommand ) : System
selectCommand IDbCommand
return System

SqliteDataAdapter() public method

Initializes a new instance of the SqliteDataAdapter class with a SelectCommand and a SqliteConnection object.
public SqliteDataAdapter ( string selectCommandText, Community.CsharpSqlite.SQLiteClient.SqliteConnection connection ) : System
selectCommandText string
connection Community.CsharpSqlite.SQLiteClient.SqliteConnection
return System

SqliteDataAdapter() public method

Initializes a new instance of the SqliteDataAdapter class with a SelectCommand and a connection string.
public SqliteDataAdapter ( string selectCommandText, string connectionString ) : System
selectCommandText string
connectionString string
return System