417 references to ADP
System.Data.Common (417)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (3)
40Debug.Assert(ADP.IsCatchableExceptionType(e), "Invalid exception type, should have been re-thrown!"); 292return ADP.Argument(SR.Format(SR.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException); 478internal static int DstCompare(string strA, string strB) => CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.DefaultCompareOptions);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (20)
145throw ADP.InvalidConnectionOptionValue(keyName); 228{ throw ADP.ConnectionStringSyntax(startposition); } 247{ throw ADP.ConnectionStringSyntax(startposition); } 255{ throw ADP.ConnectionStringSyntax(startposition); } 280{ throw ADP.ConnectionStringSyntax(startposition); } 295{ throw ADP.ConnectionStringSyntax(startposition); } 309{ throw ADP.ConnectionStringSyntax(startposition); } 323{ throw ADP.ConnectionStringSyntax(startposition); } 340throw ADP.ConnectionStringSyntax(startposition); // unbalanced single quote 347throw ADP.ConnectionStringSyntax(currentPosition); 350throw ADP.InternalError(ADP.InternalErrorCode.InvalidParserState1); 362throw ADP.ConnectionStringSyntax(startposition); 368{ throw ADP.ConnectionStringSyntax(startposition); } 378throw ADP.ConnectionStringSyntax(startposition); // unquoted value must not end in quote, except for odbc 397throw ADP.InternalError(ADP.InternalErrorCode.InvalidParserState2); 446throw ADP.ConnectionStringSyntax(match.Length); 482throw ADP.KeywordNotSupported(keyname); 579throw ADP.KeywordNotSupported(keyname);
src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (10)
54throw ADP.InvalidMultipartNameToManyParts(property, name, limit); 68throw ADP.InvalidMultipartNameToManyParts(property, name, limit); 73throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 116throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 138throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 143throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 222throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 243throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 266throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes(property, name); 273throw ADP.InvalidMultipartName(property, name); // Name is entirely made up of whitespace
src\libraries\Common\src\System\Data\Common\NameValuePair.cs (2)
42throw ADP.InternalError(ADP.InternalErrorCode.NameValuePairNext);
System\Data\Common\AdapterUtil.Common.cs (11)
364return CollectionIndexString(typeof(DataColumnMapping), ADP.DataSetColumn, cacheColumn, typeof(DataColumnMappingCollection)); 372return CollectionIndexString(typeof(DataColumnMapping), ADP.SourceColumn, srcColumn, typeof(DataColumnMappingCollection)); 384return CollectionUniqueValue(typeof(DataColumnMapping), ADP.SourceColumn, srcColumn); 404return CollectionIndexString(typeof(DataTableMapping), ADP.DataSetTable, cacheTable, typeof(DataTableMappingCollection)); 420return CollectionIndexString(typeof(DataTableMapping), ADP.SourceTable, srcTable, typeof(DataTableMappingCollection)); 424return CollectionUniqueValue(typeof(DataTableMapping), ADP.SourceTable, srcTable); 464throw ADP.InvalidStatementType(statementType); 502throw ADP.InvalidStatementType(statementType); 505return InvalidOperation(SR.Format(resource, ADP.ConnectionStateMsg(state))); 596throw ADP.InvalidStatementType(statementType); 632throw ADP.InvalidStatementType(statementType);
System\Data\Common\DataAdapter.cs (30)
104throw ADP.InvalidLoadOption(value); 132throw ADP.InvalidMissingMappingAction(value); 152throw ADP.InvalidMissingSchemaAction(value); 254throw ADP.NotSupported(); 265throw ADP.ArgumentNull(nameof(dataSet)); 269throw ADP.InvalidSchemaType(schemaType); 273throw ADP.FillSchemaRequiresSourceTableName(nameof(srcTable)); 277throw ADP.FillRequires(nameof(dataReader)); 298throw ADP.ArgumentNull(nameof(dataTable)); 302throw ADP.InvalidSchemaType(schemaType); 306throw ADP.FillRequires(nameof(dataReader)); 370throw ADP.NotSupported(); 380throw ADP.FillRequires(nameof(dataSet)); 384throw ADP.FillRequiresSourceTableName(nameof(srcTable)); 388throw ADP.FillRequires(nameof(dataReader)); 392throw ADP.InvalidStartRecord(nameof(startRecord), startRecord); 396throw ADP.InvalidMaxRecords(nameof(maxRecords), maxRecords); 423ADP.CheckArgumentLength(dataTables, nameof(dataTables)); 426throw ADP.FillRequires("dataTable"); 430throw ADP.FillRequires(nameof(dataReader)); 434throw ADP.NotSupported(); // FillChildren is not supported with FillPage 605catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 607ADP.TraceExceptionForCapture(e); 642catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 644ADP.TraceExceptionForCapture(e); 685catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 687ADP.TraceExceptionForCapture(e); 709catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 711ADP.TraceExceptionForCapture(e); 763throw ADP.NotSupported();
System\Data\Common\DataColumnMapping.cs (7)
57if ((null != Parent) && (0 != ADP.SrcCompare(_sourceColumnName, value))) 84throw ADP.ArgumentNull(nameof(dataTable)); 101throw ADP.ColumnSchemaExpression(sourceColumn, dataSetColumn); 109throw ADP.ColumnSchemaMismatch(sourceColumn, dataType, dataColumn); 133throw ADP.ColumnSchemaMissing(dataSetColumn, dataTable.TableName, sourceColumn); 135throw ADP.InvalidMissingSchemaAction(schemaAction); 163throw ADP.ArgumentNull(nameof(destinationType));
System\Data\Common\DataColumnMappingCollection.cs (22)
158throw ADP.ArgumentNull(nameof(values)); 243throw ADP.ColumnsDataSetColumn(value); 276if (0 == ADP.SrcCompare(sourceColumn, _items![i].SourceColumn)) 292if (0 == ADP.DstCompare(dataSetColumn, _items![i].DataSetColumn)) 311throw ADP.ColumnsAddNullAttempt(nameof(value)); 322throw ADP.ColumnsIndexInt32(index, this); 331throw ADP.ColumnsIndexSource(sourceColumn); 365throw ADP.ColumnsAddNullAttempt(nameof(value)); 375throw ADP.CollectionRemoveInvalidObject(ItemType, this); 392throw ADP.ColumnsAddNullAttempt(nameof(value)); 396throw ADP.NotADataColumnMapping(value); 404throw ADP.ColumnsAddNullAttempt(nameof(value)); 410throw ADP.ColumnsIsNotParent(this); 414throw ADP.ColumnsIsParent(this); 424name = ADP.SourceColumn + index.ToString(System.Globalization.CultureInfo.InvariantCulture); 440throw ADP.ColumnsUniqueSourceColumn(value); 457throw ADP.InvalidSourceColumn(nameof(sourceColumn)); 468throw ADP.MissingColumnMapping(sourceColumn); 470throw ADP.InvalidMissingMappingAction(mappingAction); 486throw ADP.InvalidSourceColumn(nameof(sourceColumn)); 497throw ADP.MissingColumnMapping(sourceColumn); 499throw ADP.InvalidMissingMappingAction(mappingAction);
System\Data\Common\DataRecordInternal.cs (13)
41throw ADP.ArgumentNull(nameof(values)); 119throw ADP.InvalidSourceBufferIndex(cbytes, dataIndex, nameof(dataIndex)); 142catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 148throw ADP.InvalidDataLength(length); 154throw ADP.InvalidDestinationBufferIndex(length, bufferIndex, nameof(bufferIndex)); 160throw ADP.InvalidSourceBufferIndex(length, dataIndex, nameof(dataIndex)); 166throw ADP.InvalidBufferSizeOrIndex(cbytes, bufferIndex); 189throw ADP.InvalidSourceBufferIndex(cchars, dataIndex, nameof(dataIndex)); 218catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 224throw ADP.InvalidDataLength(length); 230throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, nameof(bufferIndex)); 236throw ADP.InvalidSourceBufferIndex(cchars, dataIndex, nameof(dataIndex)); 242throw ADP.InvalidBufferSizeOrIndex(cchars, bufferIndex);
System\Data\Common\DataTableMapping.cs (5)
89if ((null != Parent) && (0 != ADP.SrcCompare(_sourceTableName, value))) 131throw ADP.ArgumentNull(nameof(dataSet)); 155throw ADP.MissingTableSchema(dataSetTable, SourceTable); 157throw ADP.InvalidMissingSchemaAction(schemaAction); 185throw ADP.ArgumentNull(nameof(destinationType));
System\Data\Common\DataTableMappingCollection.cs (19)
112throw ADP.ArgumentNull(nameof(values)); 183throw ADP.TablesDataSetTable(dataSetTable); 213if ((null != value) && (0 == ADP.SrcCompare(sourceTable, value))) 229if ((null != value) && (0 == ADP.DstCompare(dataSetTable, value))) 248throw ADP.TablesAddNullAttempt(nameof(value)); 259throw ADP.TablesIndexInt32(index, this); 268throw ADP.TablesSourceIndex(sourceTable); 302throw ADP.TablesAddNullAttempt(nameof(value)); 312throw ADP.CollectionRemoveInvalidObject(ItemType, this); 328throw ADP.TablesAddNullAttempt(nameof(value)); 332throw ADP.NotADataTableMapping(value); 340throw ADP.TablesAddNullAttempt(nameof(value)); 346throw ADP.TablesIsNotParent(this); 350throw ADP.TablesIsParent(this); 359name = ADP.SourceTable + index.ToString(System.Globalization.CultureInfo.InvariantCulture); 376throw ADP.TablesUniqueSourceTable(value); 393throw ADP.InvalidSourceTable(nameof(sourceTable)); 404throw ADP.MissingTableMapping(sourceTable); 407throw ADP.InvalidMissingMappingAction(mappingAction);
System\Data\Common\DbCommand.cs (3)
125return ADP.CreatedTaskWithCancellation<int>(); 166return ADP.CreatedTaskWithCancellation<DbDataReader>(); 198return ADP.CreatedTaskWithCancellation<object?>();
System\Data\Common\DBCommandBuilder.cs (44)
196if (ADP.CompareInsensitiveInvariant(name, _baseParameterNames[j])) 259if (ADP.CompareInsensitiveInvariant(_baseParameterNames[i], name)) 356throw ADP.InvalidConflictOptions(value); 372throw ADP.NoQuoteChange(); 381throw ADP.InvalidCatalogLocation(value); 399throw ADP.NoQuoteChange(); 468throw ADP.NoQuoteChange(); 486throw ADP.NoQuoteChange(); 506throw ADP.NoQuoteChange(); 575throw ADP.MissingSourceCommandConnection(); 624throw ADP.DynamicSQLNoTableInfo(); 645ADP.BuildSchemaTableInfoTableNames(srcColumnNames); 661throw ADP.DynamicSQLNoTableInfo(); 701else if ((0 != ADP.SrcCompare(baseTableName, tableName)) 702|| (0 != ADP.SrcCompare(baseSchemaName, schemaName)) 703|| (0 != ADP.SrcCompare(baseCatalogName, catalogName)) 704|| (0 != ADP.SrcCompare(baseServerName, serverName))) 706throw ADP.DynamicSQLJoinUnsupported(); 726throw ADP.DynamicSQLNoTableInfo(); 738throw ADP.DynamicSQLNestedQuote(baseTableName, quotePrefix); 742throw ADP.DynamicSQLNestedQuote(baseTableName, quoteSuffix); 750builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseServerName)); 755builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseCatalogName)); 761builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseSchemaName)); 764builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseTableName)); 771builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseServerName)); 776builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseCatalogName)); 1105throw ADP.DynamicSQLNoKeyInfoRowVersionUpdate(); 1107throw ADP.DynamicSQLNoKeyInfoUpdate(); 1113throw ADP.DynamicSQLNoKeyInfoRowVersionDelete(); 1115throw ADP.DynamicSQLNoKeyInfoDelete(); 1154p.Value = ADP.IsNull(value) ? DbDataAdapter.s_parameterValueNullValue : DbDataAdapter.s_parameterValueNonNullValue; 1306throw ADP.MissingSourceCommand(); 1425throw ADP.DynamicSQLNoKeyInfoRowVersionUpdate(); 1427throw ADP.DynamicSQLNoKeyInfoUpdate(); 1450throw ADP.InvalidConflictOptions(value); 1477return ADP.BuildQuotedString(QuotePrefix, QuoteSuffix, column); 1482throw ADP.NotSupported(); 1538throw ADP.ArgumentNull(nameof(rowUpdatingEvent)); 1564throw ADP.InvalidStatementType(stmtType); 1589catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1591ADP.TraceExceptionForCapture(e); 1621throw ADP.InvalidStatementType(rowUpdatingEvent.StatementType); 1633throw ADP.NotSupported();
System\Data\Common\DbConnection.cs (5)
30public virtual int ConnectionTimeout => ADP.DefaultConnectionTimeout; 145throw ADP.NotSupported(); 161throw ADP.NotSupported(); 179throw ADP.NotSupported(); 214throw ADP.NotSupported();
System\Data\Common\DbConnectionOptions.cs (6)
57ADP.CheckArgumentNull(builder, nameof(builder)); 58ADP.CheckArgumentLength(keyName, nameof(keyName)); 62throw ADP.InvalidKeyname(keyName); 66throw ADP.InvalidValue(keyName); 189throw ADP.InvalidKeyname(keyword); 193throw ADP.InvalidValue(keyword);
System\Data\Common\DbConnectionStringBuilder.cs (11)
83ADP.CheckArgumentNull(keyword, nameof(keyword)); 89throw ADP.KeywordNotSupported(keyword); 93ADP.CheckArgumentNull(keyword, nameof(keyword)); 301ADP.CheckArgumentNull(keyword, nameof(keyword)); 313ADP.CheckArgumentNull(connectionStringBuilder, nameof(connectionStringBuilder)); 362ADP.CheckArgumentNull(keyword, nameof(keyword)); 375ADP.CheckArgumentNull(keyword, nameof(keyword)); 386ADP.CheckArgumentNull(keyword, nameof(keyword)); 445if (ADP.ConnectionString != reflected.Name) 459propertyDescriptors[ADP.ConnectionString] = reflected; 463propertyDescriptors.Remove(ADP.ConnectionString);
System\Data\Common\DbConnectionStringCommon.cs (1)
21throw ADP.ConvertFailed(value.GetType(), typeof(string), e);
System\Data\Common\DbDataAdapter.cs (68)
158throw ADP.NotSupported(); 223throw ADP.NotSupported(); 231throw ADP.NotSupported(); 288throw ADP.NotSupported(); 351throw ADP.ArgumentNull(nameof(dataSet)); 355throw ADP.InvalidSchemaType(schemaType); 359throw ADP.FillSchemaRequiresSourceTableName(nameof(srcTable)); 363throw ADP.MissingSelectCommand(ADP.FillSchema); 382throw ADP.ArgumentNull(nameof(dataTable)); 386throw ADP.InvalidSchemaType(schemaType); 390throw ADP.MissingSelectCommand(ADP.FillSchema); 413IDbConnection activeConnection = DbDataAdapter.GetConnection3(command, ADP.FillSchema); 502throw ADP.FillRequires(nameof(dataSet)); 506throw ADP.InvalidStartRecord(nameof(startRecord), startRecord); 510throw ADP.InvalidMaxRecords(nameof(maxRecords), maxRecords); 514throw ADP.FillRequiresSourceTableName(nameof(srcTable)); 518throw ADP.MissingSelectCommand(ADP.Fill); 583throw ADP.FillRequires("dataTable"); 587throw ADP.InvalidStartRecord(nameof(startRecord), startRecord); 591throw ADP.InvalidMaxRecords(nameof(maxRecords), maxRecords); 595throw ADP.OnlyOneTableForStartRecordOrMaxRecords(); 599throw ADP.MissingSelectCommand(ADP.Fill); 619IDbConnection activeConnection = DbDataAdapter.GetConnection3(command, ADP.Fill); 675throw ADP.NotSupported(); 726throw ADP.MissingTableMappingDestination(dataTable.TableName); 738throw ADP.NotSupported(); 776parameter.Value = ADP.IsNull(parameter.Value) ? s_parameterValueNullValue : s_parameterValueNonNullValue; 838throw ADP.NotSupported(); 856throw ADP.ArgumentNull(nameof(dataRows)); 867throw ADP.UpdateMismatchRowTable(i); 894throw ADP.UpdateRequiresDataTable(nameof(dataTable)); 907throw ADP.MissingTableMappingDestination(dataTable.TableName); 927throw ADP.UpdateRequiresNonNullDataSet(nameof(dataSet)); 931throw ADP.UpdateRequiresSourceTableName(nameof(srcTable)); 950throw ADP.UpdateRequiresSourceTable(srcTable); 1039throw ADP.InvalidDataRowState(dataRow.RowState); // out of Update without completing batch 1058catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1060ADP.TraceExceptionForCapture(e); 1099throw ADP.InvalidUpdateStatus(rowUpdatingStatus); // out of Update 1151errors = ADP.ResultsNotAllowedDuringBatch(); 1157errors = ADP.UpdateRequiresCommand(statementType, isCommandFromRowUpdating); 1160catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1163ADP.TraceExceptionForCapture(e); 1212rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1229rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(statementType, isCommandFromRowUpdating, state); 1236rowUpdatedEvent.Errors = ADP.UpdateRequiresCommand(statementType, isCommandFromRowUpdating); 1240catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1243ADP.TraceExceptionForCapture(e); 1316rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1320catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1323ADP.TraceExceptionForCapture(e); 1376ADP.TraceExceptionForCapture(e); 1416batchCommands[bc]._errors = ADP.UpdateConcurrencyViolation(batchCommands[bc]._statementType, 0, 1, new DataRow[] { rowUpdatedEvent.Rows[bc] }); 1453rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(StatementType.Batch, commandCount - rowsInError.Length, commandCount, rowsInError); 1486DataRow[] dataRows = ADP.SelectAdapterRows(dataTable, false); 1586rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(cmdIndex, rowUpdatedEvent.RecordsAffected, 1, new DataRow[] { rowUpdatedEvent.Row }); 1612throw ADP.InvalidUpdateStatus(rowUpdatedEvent.Status); 1659errors = ADP.RowUpdatedErrors(); 1730errors = ADP.RowUpdatingErrors(); 1764throw ADP.UpdateConnectionRequired(StatementType.Batch, false); 1776throw ADP.ConnectionRequired_Res(method); 1787throw ADP.UpdateConnectionRequired(statementType, isCommandFromRowUpdating); 1800throw ADP.UnwantedStatementType(statementType); 1802throw ADP.InvalidStatementType(statementType);
System\Data\Common\DbDataReader.cs (11)
167throw ADP.NotSupported(); 254return ADP.CreatedTaskWithCancellation<T>(); 279return ADP.CreatedTaskWithCancellation<bool>(); 285return IsDBNull(ordinal) ? ADP.TrueTask : ADP.FalseTask; 304return ADP.CreatedTaskWithCancellation<bool>(); 310return Read() ? ADP.TrueTask : ADP.FalseTask; 325return ADP.CreatedTaskWithCancellation<bool>(); 331return NextResult() ? ADP.TrueTask : ADP.FalseTask;
System\Data\Common\DbDataRecord.cs (1)
33throw ADP.NotSupported();
System\Data\Common\DbEnumerator.cs (6)
25throw ADP.ArgumentNull(nameof(reader)); 34throw ADP.ArgumentNull(nameof(reader)); 81throw ADP.NotSupported(); 92ADP.BuildSchemaTableInfoTableNames(fieldnames); 135throw ADP.NotSupported(); 140throw ADP.NotSupported();
System\Data\Common\DbProviderFactories.cs (16)
58ADP.CheckArgumentNull(providerRow, nameof(providerRow)); 63throw ADP.Argument(SR.ADP_DbProviderFactories_NoAssemblyQualifiedName); 69throw ADP.Argument(SR.ADP_DbProviderFactories_NoAssemblyQualifiedName); 78ADP.CheckArgumentNull(connection, nameof(connection)); 112ADP.CheckArgumentLength(providerInvariantName, nameof(providerInvariantName)); 113ADP.CheckArgumentLength(factoryTypeAssemblyQualifiedName, nameof(factoryTypeAssemblyQualifiedName)); 126ADP.CheckArgumentLength(providerInvariantName, nameof(providerInvariantName)); 127ADP.CheckArgumentNull(factory, nameof(factory)); 142ADP.CheckArgumentLength(providerInvariantName, nameof(providerInvariantName)); 154return throwOnError ? throw ADP.Argument(SR.Format(SR.ADP_DbProviderFactories_InvariantNameNotFound, providerInvariantName)) : (DbProviderFactory?)null; 170ADP.CheckArgumentNull(providerFactoryClass, nameof(providerFactoryClass)); 173throw ADP.Argument(SR.Format(SR.ADP_DbProviderFactories_NotAFactoryType, providerFactoryClass.FullName)); 179throw ADP.InvalidOperation(SR.ADP_DbProviderFactories_NoInstance); 183throw ADP.InvalidOperation(SR.ADP_DbProviderFactories_NoInstance); 188throw ADP.InvalidOperation(SR.ADP_DbProviderFactories_NoInstance); 199throw ADP.Argument(SR.Format(SR.ADP_DbProviderFactories_FactoryNotLoadable, assemblyQualifiedName));
System\Data\Common\FieldNameLookup.cs (3)
41throw ADP.ArgumentNull(nameof(fieldName)); 46throw ADP.IndexOutOfRange(fieldName); 71index = LinearIndexOf(fieldName, ADP.DefaultCompareOptions);
System\Data\Common\ObjectStorage.cs (1)
563throw ADP.InvalidOperation(SR.Xml_DynamicWithoutXmlSerializable);
System\Data\Common\RowUpdatedEventArgs.cs (3)
34throw ADP.InvalidStatementType(statementType); 120throw ADP.InvalidUpdateStatus(value); 165throw ADP.ArgumentNull(nameof(array));
System\Data\Common\RowUpdatingEventArgs.cs (5)
18ADP.CheckArgumentNull(dataRow, nameof(dataRow)); 19ADP.CheckArgumentNull(tableMapping, nameof(tableMapping)); 28throw ADP.NotSupportedStatementType(statementType, nameof(RowUpdatingEventArgs)); 30throw ADP.InvalidStatementType(statementType); 74throw ADP.InvalidUpdateStatus(value);
System\Data\Constraint.cs (1)
119catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\ConstraintCollection.cs (1)
451catch (Exception e) when (Common.ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\DataColumn.cs (2)
795catch (Exception e1) when (ADP.IsCatchableExceptionType(e1)) 817catch (Exception e2) when (ADP.IsCatchableExceptionType(e2))
System\Data\DataColumnCollection.cs (2)
363catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 608catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\DataException.cs (3)
380public static Exception NotSupportedOnDataSourceBatch() => Common.ADP.NotSupported(SR.Batch_NotSupportedOnDataSourceBatch); 386public static Exception NotSupportedOnDataSourceCommand() => Common.ADP.NotSupported(SR.Command_NotSupportedOnDataSourceCommand); 521public static Exception ColumnTypeNotSupported() => Common.ADP.NotSupported(SR.DataColumn_NullableTypesNotSupported);
System\Data\DataRelation.cs (1)
675catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\DataRelationCollection.cs (1)
818catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\DataRow.cs (2)
336catch (Exception e1) when (Common.ADP.IsCatchableOrSecurityExceptionType(e1)) 508catch (Exception e1) when (Common.ADP.IsCatchableOrSecurityExceptionType(e1))
System\Data\DataSet.cs (11)
957catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 959ADP.TraceExceptionWithoutRethrow(e); 1903ADP.CheckArgumentNull(multipleTargetConverter, nameof(multipleTargetConverter)); 1918ADP.CheckArgumentNull(multipleTargetConverter, nameof(multipleTargetConverter)); 1933ADP.CheckArgumentNull(multipleTargetConverter, nameof(multipleTargetConverter)); 1948ADP.CheckArgumentNull(multipleTargetConverter, nameof(multipleTargetConverter)); 3007throw ADP.InvalidMissingSchemaAction(missingSchemaAction); 3058throw ADP.InvalidMissingSchemaAction(missingSchemaAction); 3101throw ADP.InvalidMissingSchemaAction(missingSchemaAction); 3548ADP.CheckArgumentNull(dt, nameof(tables)); 3582ADP.CheckArgumentNull(tables, nameof(tables));
System\Data\DataTable.cs (7)
1007catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1450catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1453ADP.TraceExceptionWithoutRethrow(e); 3409catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 4126catch (Exception f) when (ADP.IsCatchableExceptionType(f)) 4473catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 4953throw ADP.InvalidMissingSchemaAction(missingSchemaAction);
System\Data\DataTableReader.cs (7)
371throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, nameof(dataIndex)); 375throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, nameof(bufferIndex)); 384throw ADP.InvalidDataLength(length); 434throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, nameof(dataIndex)); 438throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, nameof(bufferIndex)); 447throw ADP.InvalidDataLength(length); 861throw ADP.DataReaderClosed(caller);
System\Data\DataView.cs (2)
1420catch (Exception f) when (Common.ADP.IsCatchableExceptionType(f)) 1502catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\DataViewManager.cs (1)
323catch (Exception f) when (Common.ADP.IsCatchableExceptionType(f))
System\Data\Filter\DataExpression.cs (2)
147catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 270catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\Filter\ExpressionParser.cs (2)
259catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e)) 606catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\Filter\NameNode.cs (1)
47if (!Common.ADP.IsCatchableExceptionType(e))
System\Data\ForeignKeyConstraint.cs (3)
676throw ADP.InvalidAcceptRejectRule(value); 849throw ADP.InvalidRule(value); 954throw ADP.InvalidRule(value);
System\Data\Merger.cs (1)
591catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\ProviderBase\SchemaMapping.cs (11)
116MissingMappingAction.Error => throw ADP.MissingTableMappingDestination(_dataTable.TableName), 117_ => throw ADP.InvalidMissingMappingAction(mappingAction), 145throw ADP.InvalidSchemaType(schemaType); 421throw ADP.InvalidLoadOption(_loadOption); 517ADP.BuildSchemaTableInfoTableNames(fieldNames); 592throw ADP.MissingDataReaderFieldType(i); 681throw ADP.FillChapterAutoIncrement(); 751catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 817throw ADP.MissingDataReaderFieldType(sortedIndex); 924throw ADP.FillChapterAutoIncrement(); 1129catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\RecordManager.cs (1)
249catch (Exception e) when (Common.ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\Select.cs (1)
631catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\SQLTypes\SQLBinary.cs (1)
341throw ADP.WrongType(value!.GetType(), typeof(SqlBinary));
System\Data\SQLTypes\SQLBoolean.cs (1)
448throw ADP.WrongType(value!.GetType(), typeof(SqlBoolean));
System\Data\SQLTypes\SQLByte.cs (1)
457throw ADP.WrongType(value!.GetType(), typeof(SqlByte));
System\Data\SQLTypes\SQLBytes.cs (2)
714throw ADP.InvalidSeekOrigin(nameof(offset)); 832throw ADP.StreamClosed(methodname);
System\Data\SQLTypes\SQLChars.cs (5)
618throw ADP.ArgumentOutOfRange(nameof(offset)); 625throw ADP.ArgumentOutOfRange(nameof(offset)); 632throw ADP.ArgumentOutOfRange(nameof(offset)); 637throw ADP.ArgumentOutOfRange(nameof(offset)); 695throw ADP.StreamClosed(methodname);
System\Data\SQLTypes\SQLDateTime.cs (1)
599throw ADP.WrongType(value!.GetType(), typeof(SqlDateTime));
System\Data\SQLTypes\SQLDecimal.cs (1)
3283throw ADP.WrongType(value!.GetType(), typeof(SqlDecimal));
System\Data\SQLTypes\SQLDouble.cs (1)
373throw ADP.WrongType(value!.GetType(), typeof(SqlDouble));
System\Data\SQLTypes\SQLGuid.cs (1)
264throw ADP.WrongType(value!.GetType(), typeof(SqlGuid));
System\Data\SQLTypes\SQLInt16.cs (1)
458throw ADP.WrongType(value!.GetType(), typeof(SqlInt16));
System\Data\SQLTypes\SQLInt32.cs (1)
473throw ADP.WrongType(value!.GetType(), typeof(SqlInt32));
System\Data\SQLTypes\SQLInt64.cs (1)
532throw ADP.WrongType(value!.GetType(), typeof(SqlInt64));
System\Data\SQLTypes\SQLMoney.cs (1)
527throw ADP.WrongType(value!.GetType(), typeof(SqlMoney));
System\Data\SQLTypes\SQLSingle.cs (1)
383throw ADP.WrongType(value!.GetType(), typeof(SqlSingle));
System\Data\SQLTypes\SQLString.cs (2)
691throw ADP.ArgumentOutOfRange(nameof(compareOptions)); 848throw ADP.WrongType(value!.GetType(), typeof(SqlString));
System\Data\SQLTypes\SqlXml.cs (2)
107if ((!throwTargetInvocationExceptions) || (!ADP.IsCatchableExceptionType(ex))) 386throw ADP.InvalidSeekOrigin(nameof(offset));
System\Data\xmlsaver.cs (1)
2238catch (Exception ex) when (ADP.IsCatchableExceptionType(ex))
System\Xml\XmlDataDocument.cs (4)
924catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 1456catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 1722catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 2431catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e))