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
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\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\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\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\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));