C# Class System.Data.Common.DbDataAdapter.DbDataAdapter

Inheritance: DataAdapter, ICloneable
Afficher le fichier Open project: runefs/Marvin

Private Properties

Свойство Type Description
CreateMethodNotSupportedException System.Exception
Fill int
Fill int
FillFromReader int
FillFromReader int
GetFillParameters IDataParameter[]
ICloneable object
OnFillErrorInternal void
Update int

Méthodes publiques

Méthode Description
Fill ( DataSet dataSet ) : int
Fill ( DataSet dataSet, int startRecord, int maxRecords, string srcTable ) : int
Fill ( DataSet dataSet, string srcTable ) : int
Fill ( DataTable dataTable ) : int
FillSchema ( DataTable dataTable, SchemaType schemaType ) : DataTable
FillSchema ( DataSet dataSet, SchemaType schemaType ) : System.Data.DataTable[]
FillSchema ( DataSet dataSet, SchemaType schemaType, string srcTable ) : System.Data.DataTable[]
Update ( DataRow dataRows ) : int
Update ( DataSet dataSet ) : int
Update ( DataSet dataSet, string srcTable ) : int
Update ( DataTable dataTable ) : int

Méthodes protégées

Méthode Description
AddToBatch ( IDbCommand command ) : int
ClearBatch ( ) : void
CreateRowUpdatedEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatedEventArgs
CreateRowUpdatingEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatingEventArgs
DbDataAdapter ( ) : System
DbDataAdapter ( DbDataAdapter adapter ) : System
Dispose ( bool disposing ) : void
ExecuteBatch ( ) : int
Fill ( DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior ) : int
Fill ( DataSet dataSet, string srcTable, IDataReader dataReader, int startRecord, int maxRecords ) : int
Fill ( DataTable dataTable, IDataReader dataReader ) : int
Fill ( DataTable dataTable, IDbCommand command, CommandBehavior behavior ) : int
FillSchema ( DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior ) : DataTable
FillSchema ( DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior ) : System.Data.DataTable[]
GetBatchedParameter ( int commandIdentifier, int parameterIndex ) : IDataParameter
GetBatchedRecordsAffected ( int commandIdentifier, int &recordsAffected, Exception &error ) : bool
InitializeBatching ( ) : void
OnFillError ( FillErrorEventArgs value ) : void
OnRowUpdated ( RowUpdatedEventArgs value ) : void
OnRowUpdating ( RowUpdatingEventArgs value ) : void
TerminateBatching ( ) : void
Update ( DataRow dataRows, DataTableMapping tableMapping ) : int

Private Methods

Méthode Description
CreateMethodNotSupportedException ( ) : Exception
Fill ( DataTable dataTables, int startRecord, int maxRecords, IDbCommand command, CommandBehavior behavior ) : int
Fill ( int startRecord, int maxRecords ) : int
FillFromReader ( DataTable table, IDataReader reader, int start, int length, int mapping, LoadOption loadOption ) : int

Fills the given datatable using values from reader. if a value for a column is null, that will be filled with default value.

FillFromReader ( DataTable table, IDataReader reader, int start, int length, int mapping, LoadOption loadOption, FillErrorEventHandler errorHandler ) : int
GetFillParameters ( ) : IDataParameter[]
ICloneable ( ) : object
OnFillErrorInternal ( FillErrorEventArgs value ) : void
Update ( DataTable dataTable, DataTableMapping tableMapping ) : int

Method Details

AddToBatch() protected méthode

protected AddToBatch ( IDbCommand command ) : int
command IDbCommand
Résultat int

ClearBatch() protected méthode

protected ClearBatch ( ) : void
Résultat void

CreateRowUpdatedEvent() protected méthode

protected CreateRowUpdatedEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatedEventArgs
dataRow System.Data.DataRow
command IDbCommand
statementType StatementType
tableMapping DataTableMapping
Résultat RowUpdatedEventArgs

CreateRowUpdatingEvent() protected méthode

protected CreateRowUpdatingEvent ( DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping ) : RowUpdatingEventArgs
dataRow System.Data.DataRow
command IDbCommand
statementType StatementType
tableMapping DataTableMapping
Résultat RowUpdatingEventArgs

DbDataAdapter() protected méthode

protected DbDataAdapter ( ) : System
Résultat System

DbDataAdapter() protected méthode

protected DbDataAdapter ( DbDataAdapter adapter ) : System
adapter DbDataAdapter
Résultat System

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ExecuteBatch() protected méthode

protected ExecuteBatch ( ) : int
Résultat int

Fill() public méthode

public Fill ( DataSet dataSet ) : int
dataSet System.Data.DataSet
Résultat int

Fill() public méthode

public Fill ( DataSet dataSet, int startRecord, int maxRecords, string srcTable ) : int
dataSet System.Data.DataSet
startRecord int
maxRecords int
srcTable string
Résultat int

Fill() protected méthode

protected Fill ( DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior ) : int
dataSet System.Data.DataSet
startRecord int
maxRecords int
srcTable string
command IDbCommand
behavior CommandBehavior
Résultat int

Fill() public méthode

public Fill ( DataSet dataSet, string srcTable ) : int
dataSet System.Data.DataSet
srcTable string
Résultat int

Fill() protected méthode

protected Fill ( DataSet dataSet, string srcTable, IDataReader dataReader, int startRecord, int maxRecords ) : int
dataSet System.Data.DataSet
srcTable string
dataReader IDataReader
startRecord int
maxRecords int
Résultat int

Fill() public méthode

public Fill ( DataTable dataTable ) : int
dataTable System.Data.DataTable
Résultat int

Fill() protected méthode

protected Fill ( DataTable dataTable, IDataReader dataReader ) : int
dataTable System.Data.DataTable
dataReader IDataReader
Résultat int

Fill() protected méthode

protected Fill ( DataTable dataTable, IDbCommand command, CommandBehavior behavior ) : int
dataTable System.Data.DataTable
command IDbCommand
behavior CommandBehavior
Résultat int

FillSchema() public méthode

public FillSchema ( DataTable dataTable, SchemaType schemaType ) : DataTable
dataTable System.Data.DataTable
schemaType SchemaType
Résultat System.Data.DataTable

FillSchema() protected méthode

protected FillSchema ( DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior ) : DataTable
dataTable System.Data.DataTable
schemaType SchemaType
command IDbCommand
behavior CommandBehavior
Résultat System.Data.DataTable

FillSchema() public méthode

public FillSchema ( DataSet dataSet, SchemaType schemaType ) : System.Data.DataTable[]
dataSet System.Data.DataSet
schemaType SchemaType
Résultat System.Data.DataTable[]

FillSchema() protected méthode

protected FillSchema ( DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior ) : System.Data.DataTable[]
dataSet System.Data.DataSet
schemaType SchemaType
command IDbCommand
srcTable string
behavior CommandBehavior
Résultat System.Data.DataTable[]

FillSchema() public méthode

public FillSchema ( DataSet dataSet, SchemaType schemaType, string srcTable ) : System.Data.DataTable[]
dataSet System.Data.DataSet
schemaType SchemaType
srcTable string
Résultat System.Data.DataTable[]

GetBatchedParameter() protected méthode

protected GetBatchedParameter ( int commandIdentifier, int parameterIndex ) : IDataParameter
commandIdentifier int
parameterIndex int
Résultat IDataParameter

GetBatchedRecordsAffected() protected méthode

protected GetBatchedRecordsAffected ( int commandIdentifier, int &recordsAffected, Exception &error ) : bool
commandIdentifier int
recordsAffected int
error System.Exception
Résultat bool

InitializeBatching() protected méthode

protected InitializeBatching ( ) : void
Résultat void

OnFillError() protected méthode

protected OnFillError ( FillErrorEventArgs value ) : void
value System.Data.FillErrorEventArgs
Résultat void

OnRowUpdated() protected méthode

protected OnRowUpdated ( RowUpdatedEventArgs value ) : void
value RowUpdatedEventArgs
Résultat void

OnRowUpdating() protected méthode

protected OnRowUpdating ( RowUpdatingEventArgs value ) : void
value RowUpdatingEventArgs
Résultat void

TerminateBatching() protected méthode

protected TerminateBatching ( ) : void
Résultat void

Update() public méthode

public Update ( DataRow dataRows ) : int
dataRows System.Data.DataRow
Résultat int

Update() protected méthode

protected Update ( DataRow dataRows, DataTableMapping tableMapping ) : int
dataRows System.Data.DataRow
tableMapping DataTableMapping
Résultat int

Update() public méthode

public Update ( DataSet dataSet ) : int
dataSet System.Data.DataSet
Résultat int

Update() public méthode

public Update ( DataSet dataSet, string srcTable ) : int
dataSet System.Data.DataSet
srcTable string
Résultat int

Update() public méthode

public Update ( DataTable dataTable ) : int
dataTable System.Data.DataTable
Résultat int