14internal static class ADP
89 if (
value.Length == 0)
98 if (
value.Length == 0)
439 StatementType.Update => System.SR.ADP_UpdateConcurrencyViolation_Update,
440 StatementType.Delete => System.SR.ADP_UpdateConcurrencyViolation_Delete,
441 StatementType.Batch => System.SR.ADP_UpdateConcurrencyViolation_Batch,
442 _ => throw InvalidStatementType(statementType),
539 switch (
item.RowState)
560 switch (
item2.RowState)
596 int num2 = columnNameArray.Length - 1;
600 if (
text !=
null && 0 <
text.Length)
620 if (
text2.Length == 0)
640 string key =
text.ToLowerInvariant();
bool TryAdd(TKey key, TValue value)
static readonly DBNull Value
static ArgumentException UpdateMismatchRowTable(int i)
static IndexOutOfRangeException InvalidBufferSizeOrIndex(int numBytes, int bufferIndex)
static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
static ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value)
static InvalidOperationException DynamicSQLNoKeyInfoUpdate()
static Exception ColumnsUniqueSourceColumn(string srcColumn)
static InvalidOperationException DataAdapter(string error)
static Exception ColumnsIsParent(ICollection collection)
static ArgumentOutOfRangeException InvalidLoadOption(LoadOption value)
static string BuildQuotedString(string quotePrefix, string quoteSuffix, string unQuotedString)
static ArgumentException Argument(string error)
static int GenerateUniqueName(Dictionary< string, int > hash, ref string columnName, int index, int uniqueIndex)
static ArgumentNullException ArgumentNull(string parameter)
static int SrcCompare(string strA, string strB)
static readonly Type s_outOfMemoryType
static Exception TablesIndexInt32(int index, ITableMappingCollection collection)
static Exception InternalError(InternalErrorCode internalError)
static ArgumentOutOfRangeException InvalidSchemaType(SchemaType value)
static InvalidOperationException MissingSourceCommand()
static ArgumentOutOfRangeException InvalidDataRowState(DataRowState value)
static ArgumentOutOfRangeException ArgumentOutOfRange(string parameterName)
static int DstCompare(string strA, string strB)
static bool CompareInsensitiveInvariant(string strvalue, string strconst)
static Exception UpdateConcurrencyViolation(StatementType statementType, int affected, int expected, DataRow[] dataRows)
static string ConnectionStateMsg(ConnectionState state)
static Exception NotADataColumnMapping(object value)
static Exception FillChapterAutoIncrement()
static Exception ColumnsIndexSource(string srcColumn)
static ArgumentOutOfRangeException NotSupportedStatementType(StatementType value, string method)
static Exception ColumnsDataSetColumn(string cacheColumn)
static ArgumentOutOfRangeException InvalidStatementType(StatementType value)
static ArgumentNullException UpdateRequiresNonNullDataSet(string parameter)
static Exception StreamClosed([CallerMemberName] string method="")
static ArgumentNullException CollectionNullValue(string parameter, Type collection, Type itemType)
static Task< T > CreatedTaskWithCancellation< T >()
static InvalidOperationException DynamicSQLNoTableInfo()
static ArgumentOutOfRangeException InvalidSourceBufferIndex(int maxLen, long srcOffset, string parameterName)
static ArgumentException Argument(string error, Exception inner)
static InvalidOperationException DataMapping(string error)
static InvalidOperationException DynamicSQLNoKeyInfoRowVersionUpdate()
static DataException Data(string message)
static IndexOutOfRangeException CollectionIndexString(Type itemType, string propertyName, string propertyValue, Type collection)
static Exception TablesIsNotParent(ICollection collection)
static Exception FillSchemaRequiresSourceTableName(string parameter)
static void TraceException(string trace, Exception e)
static InvalidOperationException MissingSelectCommand(string method)
static ArgumentOutOfRangeException InvalidCatalogLocation(CatalogLocation value)
static DataRow[] SelectAdapterRows(DataTable dataTable, bool sorted)
static Exception TablesSourceIndex(string srcTable)
static IndexOutOfRangeException CollectionIndexInt32(int index, Type collection, int count)
static void TraceExceptionForCapture(Exception e)
static Exception NotADataTableMapping(object value)
static Exception TablesUniqueSourceTable(string srcTable)
static Task< bool > _falseTask
static ArgumentOutOfRangeException InvalidRule(Rule value)
static InvalidOperationException ConnectionRequired_Res(string method)
static InvalidOperationException ColumnSchemaMissing(string cacheColumn, string tableName, string srcColumn)
static ArgumentOutOfRangeException ArgumentOutOfRange(string message, string parameterName)
static InvalidOperationException NoQuoteChange()
static ArgumentOutOfRangeException InvalidDestinationBufferIndex(int maxLen, int dstOffset, string parameterName)
static DataException RowUpdatedErrors()
static ArgumentOutOfRangeException InvalidUpdateStatus(UpdateStatus value)
static InvalidOperationException ColumnSchemaExpression(string srcColumn, string cacheColumn)
static ArgumentException ConnectionStringSyntax(int index)
static Task< bool > _trueTask
static Exception ColumnsAddNullAttempt(string parameter)
static InvalidOperationException MissingDataReaderFieldType(int index)
static InvalidOperationException MissingSourceCommandConnection()
static InvalidOperationException ColumnSchemaMismatch(string srcColumn, Type srcType, DataColumn column)
static readonly Type s_nullReferenceType
static InvalidOperationException MissingTableMappingDestination(string dstTable)
static NotSupportedException NotSupported()
static readonly Type s_stackOverflowType
static InvalidCastException InvalidCast(string error, Exception inner)
static InvalidOperationException UpdateOpenConnectionRequired(StatementType statementType, bool isRowUpdatingCommand, ConnectionState state)
static Task< bool > FalseTask
static Exception TablesIsParent(ICollection collection)
static InvalidOperationException UpdateRequiresSourceTable(string defaultSrcTableName)
static Exception InvalidMaxRecords(string parameter, int max)
static ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, string value, string method)
static ArgumentException InvalidValue(string parameterName)
static DataException RowUpdatingErrors()
static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
@ ConvertSidToStringSidWReturnedNull
@ UnknownTransactionFailure
@ NewObjectCannotBePooled
@ AttemptingToEnlistTwice
@ NonPooledObjectUsedMoreThanOnce
@ PooledObjectWithoutPool
@ CreateReferenceCollectionReturnedNull
@ SqlDependencyCommandHashIsNotAssociatedWithNotification
@ AttemptingToConstructReferenceCollectionOnStaticObject
@ UnpooledObjectHasWrongOwner
@ CreateObjectReturnedNull
@ AttemptingToPoolOnRestrictedToken
@ PooledObjectInPoolMoreThanOnce
@ SqlDependencyObtainProcessDispatcherFailureObjectHandle
@ SqlDependencyProcessDispatcherFailureCreateInstance
@ UnexpectedWaitAnyResult
@ SynchronousConnectReturnedPending
@ SqlDependencyProcessDispatcherFailureAppDomain
@ PushingObjectSecondTime
@ CompletedConnectReturnedPending
static Task< bool > TrueTask
static NotSupportedException NotSupported(string error)
static Exception FillRequires(string parameter)
static ArgumentException InvalidKeyname(string parameterName)
static void TraceExceptionAsReturnValue(Exception e)
static InvalidOperationException DynamicSQLNoKeyInfoRowVersionDelete()
static ArgumentException UnwantedStatementType(StatementType statementType)
static InvalidOperationException UpdateConnectionRequired(StatementType statementType, bool isRowUpdatingCommand)
static Exception DataReaderClosed([CallerMemberName] string method="")
static Exception CollectionUniqueValue(Type itemType, string propertyName, string propertyValue)
static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
static ArgumentNullException UpdateRequiresDataTable(string parameter)
static Exception WrongType(Type got, Type expected)
static void BuildSchemaTableInfoTableNames(string[] columnNameArray)
static InvalidCastException CollectionInvalidType(Type collection, Type itemType, object invalidValue)
static InvalidOperationException MissingTableSchema(string cacheTable, string srcTable)
static InvalidOperationException Provider(string error)
static Exception InvalidSourceTable(string parameter)
static IndexOutOfRangeException IndexOutOfRange(string error)
static InvalidOperationException MissingTableMapping(string srcTable)
static InvalidOperationException UpdateRequiresCommand(StatementType statementType, bool isRowUpdatingCommand)
static Exception ColumnsIndexInt32(int index, IColumnMappingCollection collection)
static ArgumentOutOfRangeException InvalidMissingSchemaAction(MissingSchemaAction value)
static readonly Type s_threadAbortType
static InvalidOperationException MissingColumnMapping(string srcColumn)
static InvalidCastException InvalidCast(string error)
static Exception FillRequiresSourceTableName(string parameter)
static string AppendQuotedString(StringBuilder buffer, string quotePrefix, string quoteSuffix, string unQuotedString)
static Exception TablesAddNullAttempt(string parameter)
static void CheckArgumentNull([NotNull] object value, string parameterName)
static InvalidOperationException DynamicSQLNestedQuote(string name, string quote)
static InvalidOperationException UpdateRequiresSourceTableName(string srcTable)
static Exception InvalidSeekOrigin(string parameterName)
static bool IsCatchableExceptionType(Exception e)
static readonly Type s_securityType
static Exception TablesDataSetTable(string cacheTable)
static ArgumentException KeywordNotSupported(string keyword)
static bool IsCatchableOrSecurityExceptionType(Exception e)
static InvalidOperationException DynamicSQLJoinUnsupported()
static Exception InvalidSourceColumn(string parameter)
static ArgumentOutOfRangeException InvalidAcceptRejectRule(AcceptRejectRule value)
static InvalidOperationException InvalidOperation(string error)
static InvalidOperationException ResultsNotAllowedDuringBatch()
static ArgumentOutOfRangeException InvalidMissingMappingAction(MissingMappingAction value)
static void TraceExceptionWithoutRethrow(Exception e)
static readonly Type s_accessViolationType
static bool IsNull(object value)
static ArgumentException Argument(string error, string parameter)
static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection)
static Exception InvalidDataLength(long length)
static Exception ColumnsIsNotParent(ICollection collection)
static void CheckArgumentLength(string value, string parameterName)
static InvalidOperationException OnlyOneTableForStartRecordOrMaxRecords()
static InvalidOperationException DynamicSQLNoKeyInfoDelete()
static ArgumentOutOfRangeException InvalidConflictOptions(ConflictOption value)
static Exception InvalidStartRecord(string parameter, int start)
static ArgumentNullException ArgumentNull(string parameter, string error)
static void CheckArgumentLength(Array value, string parameterName)
static readonly DataCommonEventSource Log
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
static byte Min(byte val1, byte val2)
static string ADP_CollectionNullValue
static string ADP_InternalProviderError
static string ADP_OnlyOneTableForStartRecordOrMaxRecords
static string ADP_MissingSourceCommand
static string ADP_InvalidSourceBufferIndex
static string SqlConvert_ConvertFailed
static string ADP_CollectionIsNotParent
static string ADP_KeywordNotSupported
static string ADP_ConnectionRequired_Batch
static string SQL_InvalidDataLength
static string ADP_EmptyString
static string ADP_UpdateRequiresSourceTable
static string ADP_ConnectionRequired_Update
static string ADP_RowUpdatedErrors
static string ADP_ConnectionStateMsg_OpenExecuting
static string SQL_InvalidBufferSizeOrIndex
static string ADP_MissingTableSchema
static string ADP_OpenConnectionRequired_Update
static string ADP_StreamClosed
static string ADP_FillChapterAutoIncrement
static string ADP_ColumnSchemaMissing2
static string ADP_NoQuoteChange
static string ADP_OpenConnectionRequired_Delete
static string ADP_UpdateRequiresCommandInsert
static string ADP_NotSupportedEnumerationValue
static string ADP_RowUpdatingErrors
static string Format(string resourceFormat, object p1)
static string ADP_FillSchemaRequiresSourceTableName
static string ADP_DynamicSQLNoKeyInfoRowVersionUpdate
static string ADP_MissingColumnMapping
static string ADP_EmptyArray
static string ADP_CollectionIndexString
static string ADP_InvalidEnumerationValue
static string ADP_ColumnSchemaMissing1
static string ADP_MissingSelectCommand
static string ADP_MissingTableMappingDestination
static string ADP_FillRequiresSourceTableName
static string ADP_ColumnSchemaMismatch
static string ADP_DynamicSQLNoTableInfo
static string ADP_UpdateMismatchRowTable
static string ADP_ConnectionStateMsg_Connecting
static string ADP_UpdateRequiresSourceTableName
static string ADP_ConnectionRequired_Delete
static string ADP_DynamicSQLNoKeyInfoDelete
static string ADP_CollectionIndexInt32
static string ADP_MissingSourceCommandConnection
static string ADP_OpenConnectionRequired_Insert
static string ADP_UpdateRequiresCommandDelete
static string ADP_ConnectionRequired_Insert
static string ADP_DynamicSQLNestedQuote
static string ADP_ConnectionRequired_Clone
static string ADP_InvalidDestinationBufferIndex
static string ADP_MissingTableMapping
static string ADP_CollectionInvalidType
static string ADP_InvalidMaxRecords
static string ADP_CollectionRemoveInvalidObject
static string ADP_UpdateRequiresCommandSelect
static string ADP_InvalidValue
static string SQL_WrongType
static string ADP_ColumnSchemaExpression
static string ADP_ResultsNotAllowedDuringBatch
static string ADP_InvalidSeekOrigin
static string ADP_ConnectionStringSyntax
static string ADP_DynamicSQLJoinUnsupported
static string ADP_UpdateRequiresCommandUpdate
static string ADP_CollectionUniqueValue
static string ADP_InvalidKey
static string ADP_DynamicSQLNoKeyInfoRowVersionDelete
static string ADP_DataReaderClosed
static string ADP_InvalidStartRecord
static string ADP_DynamicSQLNoKeyInfoUpdate
static string ADP_MissingDataReaderFieldType
static string ADP_ConnectionStateMsg_OpenFetching
static string ADP_ConnectionStateMsg_Closed
static string ADP_ConnectionStateMsg
static string ADP_ConnectionStateMsg_Open
static string ADP_InvalidSourceTable
static string ADP_InvalidSourceColumn
static string ADP_UnwantedStatementType
static Task FromCanceled(CancellationToken cancellationToken)