55 _IDbDataAdapter.DeleteCommand =
value;
93 _IDbDataAdapter.InsertCommand =
value;
119 _IDbDataAdapter.SelectCommand =
value;
161 _IDbDataAdapter.UpdateCommand =
value;
270 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
273 long scopeId =
DataCommonEventSource.
Log.EnterScope(
"<comm.DbDataAdapter.FillSchema|API> {0}, dataTable, schemaType={1}",
base.ObjectID, schemaType);
286 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
289 long scopeId =
DataCommonEventSource.
Log.EnterScope(
"<comm.DbDataAdapter.FillSchema|API> {0}, dataSet, schemaType={1}",
base.ObjectID, schemaType);
306 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
309 long scopeId =
DataCommonEventSource.
Log.EnterScope(
"<comm.DbDataAdapter.FillSchema|API> {0}, dataSet, schemaType={1}, srcTable={2}",
base.ObjectID, (
int)schemaType,
srcTable);
374 text =
base.TableMappings[num].SourceTable;
387 object result =
null;
388 bool flag = command.Connection ==
null;
408 command.Transaction =
null;
409 command.Connection =
null;
462 long scopeId =
DataCommonEventSource.
Log.EnterScope(
"<comm.DbDataAdapter.Fill|API> {0}, dataSet, startRecord, maxRecords, srcTable, command, behavior={1}",
base.ObjectID,
behavior);
540 long scopeId =
DataCommonEventSource.
Log.EnterScope(
"<comm.DbDataAdapter.Fill|API> {0}, dataTables[], startRecord, maxRecords, command, behavior={1}",
base.ObjectID,
behavior);
578 bool flag = command.Connection ==
null;
611 command.Transaction =
null;
612 command.Connection =
null;
638 if (parameters !=
null)
704 parameter.Value =
null;
739 dataColumn.ReadOnly =
false;
745 dataColumn.ReadOnly =
true;
769 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
775 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
789 for (
int i = 0; i <
dataRows.Length; i++)
814 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
846 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
880 [
RequiresUnreferencedCode(
"IDataReader's (built from adapter commands) schema table types cannot be statically analyzed.")]
894 if (
array[0] !=
null)
956 dataRow.RowError =
null;
965 rowUpdatingEventArgs.Errors =
ex;
966 rowUpdatingEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1005 array3[0]._commandIdentifier = 0;
1053 rowUpdatedEventArgs.Errors =
ex2;
1054 rowUpdatedEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1086 rowUpdatedEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1097 array3[0]._errors =
null;
1102 rowUpdatedEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1108 rowUpdatedEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1114 rowUpdatedEventArgs.Errors =
ex4;
1115 rowUpdatedEventArgs.Status =
UpdateStatus.ErrorsOccurred;
1172 rowUpdatedEventArgs2.Status =
UpdateStatus.ErrorsOccurred;
1178 rowUpdatedEventArgs2.Errors =
ex5;
1179 rowUpdatedEventArgs2.Status =
UpdateStatus.ErrorsOccurred;
1203 for (
int n = 0;
n <
array.Length;
n++)
1226 rowUpdatedEvent.Errors =
ex;
1294 return connection.
State;
1297 [
RequiresUnreferencedCode(
"IDataReader (built from _IDbDataAdapter command) schema table rows DataTypes cannot be statically analyzed.")]
1309 [
RequiresUnreferencedCode(
"IDataReader (built from dataCommand) schema table rows DataTypes cannot be statically analyzed.")]
1400 row.AcceptChanges();
1417 string message =
ex.Message;
1425 if (
string.IsNullOrEmpty(
text))
1429 row.RowError +=
text;
1444 if (!
base.ContinueUpdateOnError)
1472 string message =
ex.Message;
1473 dataRow.RowError += message;
1474 if (!
base.ContinueUpdateOnError)
1510 if (connection ==
null)
1520 if (connection ==
null)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static ArgumentException UpdateMismatchRowTable(int i)
static ArgumentNullException ArgumentNull(string parameter)
static ArgumentOutOfRangeException InvalidSchemaType(SchemaType value)
static ArgumentOutOfRangeException InvalidDataRowState(DataRowState value)
static Exception UpdateConcurrencyViolation(StatementType statementType, int affected, int expected, DataRow[] dataRows)
static ArgumentOutOfRangeException InvalidStatementType(StatementType value)
static ArgumentNullException UpdateRequiresNonNullDataSet(string parameter)
static Exception FillSchemaRequiresSourceTableName(string parameter)
static InvalidOperationException MissingSelectCommand(string method)
static DataRow[] SelectAdapterRows(DataTable dataTable, bool sorted)
static void TraceExceptionForCapture(Exception e)
static InvalidOperationException ConnectionRequired_Res(string method)
static DataException RowUpdatedErrors()
static ArgumentOutOfRangeException InvalidUpdateStatus(UpdateStatus value)
static InvalidOperationException MissingTableMappingDestination(string dstTable)
static NotSupportedException NotSupported()
static InvalidOperationException UpdateOpenConnectionRequired(StatementType statementType, bool isRowUpdatingCommand, ConnectionState state)
static InvalidOperationException UpdateRequiresSourceTable(string defaultSrcTableName)
static Exception InvalidMaxRecords(string parameter, int max)
static DataException RowUpdatingErrors()
static Exception FillRequires(string parameter)
static ArgumentException UnwantedStatementType(StatementType statementType)
static InvalidOperationException UpdateConnectionRequired(StatementType statementType, bool isRowUpdatingCommand)
static ArgumentNullException UpdateRequiresDataTable(string parameter)
static InvalidOperationException UpdateRequiresCommand(StatementType statementType, bool isRowUpdatingCommand)
static Exception FillRequiresSourceTableName(string parameter)
static InvalidOperationException UpdateRequiresSourceTableName(string srcTable)
static bool IsCatchableExceptionType(Exception e)
static InvalidOperationException ResultsNotAllowedDuringBatch()
static bool IsNull(object value)
static InvalidOperationException OnlyOneTableForStartRecordOrMaxRecords()
static Exception InvalidStartRecord(string parameter, int start)
virtual bool ReturnProviderSpecificTypes
DataTableMapping GetTableMappingBySchemaAction(string sourceTableName, string dataSetTableName, MissingMappingAction mappingAction)
int IndexOfDataSetTable(string dataSetTable)
virtual DataAdapter CloneInternals()
void UpdateRowExecute(RowUpdatedEventArgs rowUpdatedEvent, IDbCommand dataCommand, StatementType cmdIndex)
object ICloneable. Clone()
virtual RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
override IDataParameter[] GetFillParameters()
virtual int UpdateBatchSize
virtual void OnRowUpdated(RowUpdatedEventArgs value)
virtual void TerminateBatching()
virtual ? DataTable FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior)
int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable)
int Fill(DataTable dataTable)
static readonly object s_parameterValueNonNullValue
IDbCommand _updateCommand
void ParameterOutput(IDataParameterCollection parameters, DataRow row, DataTableMapping mappings)
const string DefaultSourceTableName
DataTableMapping GetTableMapping(DataTable dataTable)
int Update(DataSet dataSet, string srcTable)
virtual void ClearBatch()
static IDbConnection GetConnection3(DbDataAdapter adapter, IDbCommand command, string method)
virtual int Fill(DataTable[] dataTables, int startRecord, int maxRecords, IDbCommand command, CommandBehavior behavior)
DataTable? FillSchema(DataTable dataTable, SchemaType schemaType)
static void QuietOpen(IDbConnection connection, out ConnectionState originalState)
static IDbConnection GetConnection4(DbDataAdapter adapter, IDbCommand command, StatementType statementType, bool isCommandFromRowUpdating)
virtual IDataParameter GetBatchedParameter(int commandIdentifier, int parameterIndex)
MissingMappingAction UpdateMappingAction
virtual void OnRowUpdating(RowUpdatingEventArgs value)
ConnectionState UpdateConnectionOpen(IDbConnection connection, StatementType statementType, IDbConnection[] connections, ConnectionState[] connectionStates, bool useSelectConnectionState)
int UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
int UpdatedRowStatusContinue(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, int commandCount)
int Fill(int startRecord, int maxRecords, params DataTable[] dataTables)
static void QuietClose(IDbConnection connection, ConnectionState originalState)
virtual bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception? error)
virtual int AddToBatch(IDbCommand command)
static readonly object s_parameterValueNullValue
CommandBehavior FillCommandBehavior
virtual int Update(DataRow[] dataRows, DataTableMapping tableMapping)
int UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, int commandCount)
virtual int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior)
DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable)
override DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType)
MissingSchemaAction UpdateSchemaAction
override int Fill(DataSet dataSet)
int FillInternal(DataSet dataset, DataTable[] datatables, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior)
virtual RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
void UpdateBatchExecute(BatchCommandInfo[] batchCommands, int commandCount, RowUpdatedEventArgs rowUpdatedEvent)
int Update(DataRow[] dataRows)
static DataRowVersion GetParameterSourceVersion(StatementType statementType, IDataParameter parameter)
static IDbConnection GetConnection1(DbDataAdapter adapter)
virtual int Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior)
IDbCommand CloneCommand(IDbCommand command)
void ParameterOutput(IDataParameter parameter, DataRow row, DataTableMapping mappings, MissingMappingAction missingMapping, MissingSchemaAction missingSchema)
IDbCommand _insertCommand
override void Dispose(bool disposing)
override int Update(DataSet dataSet)
void CloneFrom(DbDataAdapter from)
int Update(DataTable dataTable)
DbDataAdapter(DbDataAdapter adapter)
void ParameterInput(IDataParameterCollection parameters, StatementType typeIndex, DataRow row, DataTableMapping mappings)
IDbCommand _selectCommand
int Fill(DataSet dataSet, string srcTable)
object FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior)
virtual void InitializeBatching()
CommandBehavior _fillCommandBehavior
void UpdatingRowStatusErrors(RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow)
IDbCommand _deleteCommand
virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior)
int UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, int commandCount)
int UpdatedRowStatusSkip(BatchCommandInfo[] batchCommands, int commandCount)
IDbDataAdapter _IDbDataAdapter
virtual int ExecuteBatch()
static readonly DataCommonEventSource Log
static DataReaderContainer Create(IDataReader dataReader, bool returnProviderSpecificTypes)
static byte Min(byte val1, byte val2)
void CopyTo(Array array, int index)
IDbCommand? UpdateCommand
IDbCommand? InsertCommand
IDbCommand? DeleteCommand
IDbCommand? SelectCommand
DesignerSerializationVisibility
StatementType _statementType
UpdateRowSource _updatedRowSource