402 references to ADP
System.Data.Odbc (402)
Common\System\Data\Common\AdapterUtil.Odbc.cs (9)
194return ADP.InvalidOperation(SR.GetString(SR.ADP_InvalidDataDirectory)); 232return ADP.InvalidOperation(SR.GetString(SR.ADP_PooledOpenTimeout)); 237return ADP.TimeoutException(SR.GetString(SR.ADP_NonPooledOpenTimeout)); 266return InvalidOperation(SR.GetString(SR.ADP_OpenConnectionRequired, method, ADP.ConnectionStateMsg(state))); 298return Argument(SR.GetString(SR.ADP_InvalidCommandTimeout, value.ToString(CultureInfo.InvariantCulture)), ADP.CommandTimeout); 326return InvalidOperation(SR.GetString(SR.ADP_ConnectionAlreadyOpen, ADP.ConnectionStateMsg(state))); 330return InvalidOperation(SR.GetString(SR.ADP_OpenConnectionPropertySet, property, ADP.ConnectionStateMsg(state))); 429return CollectionIndexString(parameterType, ADP.ParameterName, parameterName, collection.GetType()); 482return ADP.Argument(SR.GetString(SR.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue));
Common\System\Data\Common\DbConnectionOptions.cs (12)
119ADP.CheckArgumentNull(builder, nameof(builder)); 120ADP.CheckArgumentLength(keyName, nameof(keyName)); 124throw ADP.InvalidKeyname(keyName); 128throw ADP.InvalidValue(keyName); 218throw ADP.InvalidConnectionOptionValue(KEY.Integrated_Security); 241throw ADP.InvalidConnectionOptionValue(keyname, e); 245throw ADP.InvalidConnectionOptionValue(keyname, e); 276throw ADP.InvalidDataDirectory(); 313if (!ADP.GetFullPath(fullPath).StartsWith(rootFolderPath, StringComparison.Ordinal)) 315throw ADP.InvalidConnectionOptionValue(keyword); 451throw ADP.InvalidKeyname(keyword); 455throw ADP.InvalidValue(keyword);
Common\System\Data\Common\DBConnectionString.cs (11)
75throw ADP.InvalidKeyRestrictionBehavior(behavior); 213if (!ADP.IsEmptyArray(_restrictionValues)) 215if (!ADP.IsEmptyArray(entry._restrictionValues)) 231else if (!ADP.IsEmptyArray(_restrictionValues)) 233if (!ADP.IsEmptyArray(entry._restrictionValues)) 251if (ADP.IsEmptyArray(_restrictionValues)) 256else if (ADP.IsEmptyArray(entry._restrictionValues)) 267else if (!ADP.IsEmptyArray(_restrictionValues) && !ADP.IsEmptyArray(entry._restrictionValues)) 388throw ADP.InvalidKeyRestrictionBehavior(_behavior); 483throw ADP.KeywordNotSupported(keyname);
Common\System\Data\Common\DbConnectionStringCommon.cs (4)
190throw ADP.ConvertFailed(value.GetType(), typeof(bool), e); 229throw ADP.ConvertFailed(value.GetType(), typeof(bool), e); 241throw ADP.ConvertFailed(value.GetType(), typeof(int), e); 253throw ADP.ConvertFailed(value.GetType(), typeof(string), e);
Common\System\Data\ProviderBase\DbBuffer.cs (26)
61Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 70IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 89Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 98IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 147Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 157IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 180Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 190IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 239Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 249IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 291Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 301IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 343Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 388Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 396IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 436Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 446IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 462Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 472IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 517Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 527IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 567Debug.Assert(0 == offset % ADP.PtrSize, "invalid alignment"); 577IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 758throw ADP.NumericToDecimalOverflow(); 789throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer);
Common\System\Data\ProviderBase\DbConnectionClosed.cs (1)
10protected override void Activate() => throw ADP.ClosedConnectionError();
Common\System\Data\ProviderBase\DbConnectionFactory.cs (4)
108retry.TrySetException(ADP.ExceptionWithStackTrace(ADP.NonPooledOpenTimeout())); 154throw ADP.PooledOpenTimeout(); 171throw ADP.PooledOpenTimeout();
Common\System\Data\ProviderBase\DbConnectionPool.cs (15)
143throw ADP.InternalError(ADP.InternalErrorCode.AttemptingToPoolOnRestrictedToken); 378=> ADP.UnsafeCreateTimer( 393throw ADP.InternalError(ADP.InternalErrorCode.CreateObjectReturnedNull); // CreateObject succeeded, but null object 397throw ADP.InternalError(ADP.InternalErrorCode.NewObjectCannotBePooled); // CreateObject succeeded, but non-poolable object 431if (!ADP.IsCatchableExceptionType(e)) 617delay = (uint)Math.Max(ADP.TimerRemainingMilliseconds(next.DueTime), 0); 641next.Completion.TrySetException(ADP.ExceptionWithStackTrace(ADP.PooledOpenTimeout())); 699CreationTimeout == 0 ? Timeout.Infinite : ADP.TimerCurrent() + ADP.TimerFromSeconds(CreationTimeout / 1000), 832throw ADP.InternalError(ADP.InternalErrorCode.UnexpectedWaitAnyResult);
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\BasicFieldNameLookup.cs (4)
26throw ADP.ArgumentNull(nameof(fieldNames)); 58throw ADP.ArgumentNull(nameof(fieldName)); 63throw ADP.IndexOutOfRange(fieldName); 95index = LinearIndexOf(fieldName, 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);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (10)
17public override string ServerVersion => throw ADP.ClosedConnectionError(); 19public override DbTransaction BeginTransaction(IsolationLevel il) => throw ADP.ClosedConnectionError(); 21public override void ChangeDatabase(string database) => throw ADP.ClosedConnectionError(); 28protected override void Deactivate() => ADP.ClosedConnectionError(); 31=> throw ADP.ClosedConnectionError(); 33protected override DbReferenceCollection CreateReferenceCollection() => throw ADP.ClosedConnectionError(); 46=> throw ADP.ConnectionAlreadyOpen(State); 96throw ADP.ConnectionAlreadyOpen(State); 105throw ADP.InternalConnectionError(ADP.ConnectionError.GetConnectionReturnsNull);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (5)
56ADP.CheckArgumentNull(connection, nameof(connection)); 65ADP.CheckArgumentNull(key.ConnectionString, nameof(key) + "." + nameof(key.ConnectionString)); 111ADP.UnsafeCreateTimer( 189throw ADP.InternalConnectionError(ADP.ConnectionError.ConnectionOptionsMissing);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (24)
152throw ADP.NotSupported(); 179throw ADP.InternalError(ADP.InternalErrorCode.CreateReferenceCollectionReturnedNull); 189throw ADP.MethodNotImplemented(); 214throw ADP.InternalError(ADP.InternalErrorCode.AttemptingToConstructReferenceCollectionOnStaticObject); 294throw ADP.InternalError(ADP.InternalErrorCode.SynchronousConnectReturnedPending); 305throw ADP.ConnectionAlreadyOpen(State); 310throw ADP.MethodNotImplemented(); 336throw ADP.InternalConnectionError(ADP.ConnectionError.GetConnectionReturnsNull); 358throw ADP.InternalError(ADP.InternalErrorCode.UnpooledObjectHasOwner); // new unpooled object has an owner 363throw ADP.InternalError(ADP.InternalErrorCode.UnpooledObjectHasWrongOwner); // unpooled object has incorrect owner 367throw ADP.InternalError(ADP.InternalErrorCode.PushingObjectSecondTime); // pushing object onto stack a second time 393throw ADP.InternalError(ADP.InternalErrorCode.PooledObjectHasOwner); // pooled connection already has an owner! 402throw ADP.InternalError(ADP.InternalErrorCode.PooledObjectInPoolMoreThanOnce); // popping object off stack with multiple pooledCount 407throw ADP.InternalError(ADP.InternalErrorCode.NonPooledObjectUsedMoreThanOnce); // popping object off stack with multiple pooledCount
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (26)
36ADP.CheckArgumentNull(xmlStream, nameof(xmlStream)); 37ADP.CheckArgumentNull(serverVersion, nameof(serverVersion)); 38ADP.CheckArgumentNull(normalizedServerVersion, nameof(normalizedServerVersion)); 64throw ADP.DataTableDoesNotExist(collectionName); 122throw ADP.TooManyRestrictions(collectionName); 158if (!ADP.IsCatchableExceptionType(e)) 162throw ADP.QueryFailed(collectionName, e); 203throw ADP.NoColumns(); 232throw ADP.InvalidXml(); 239throw ADP.InvalidXmlMissingColumn(DbMetaDataCollectionNames.MetaDataCollections, DbMetaDataColumnNames.CollectionName); 256throw ADP.InvalidXmlInvalidValue(DbMetaDataCollectionNames.MetaDataCollections, DbMetaDataColumnNames.CollectionName); 259if (ADP.CompareInsensitiveInvariant(candidateCollectionName, collectionName)) 271throw ADP.CollectionNameIsNotUnique(collectionName); 296throw ADP.UndefinedCollection(collectionName); 300throw ADP.UnsupportedVersion(collectionName); 306throw ADP.AmbiguousCollectionName(collectionName); 321throw ADP.MissingDataSourceInformationColumn(); 326throw ADP.IncorrectNumberOfDataSourceInformationRows(); 364throw ADP.MissingRestrictionColumn(); 382throw ADP.MissingRestrictionRow(); 403if (ADP.IsEmptyArray(restrictions) == false) 412throw ADP.NotSupported(); 432if (ADP.IsEmptyArray(restrictions) == false) 434throw ADP.TooManyRestrictions(exactCollectionName); 459throw ADP.UndefinedPopulationMechanism(populationMechanism); 500throw ADP.NotSupported();
src\libraries\Common\src\System\Data\ProviderBase\TimeoutTimer.cs (5)
63timeout._timerExpire = checked(ADP.TimerCurrent() + (milliseconds * TimeSpan.TicksPerMillisecond)); 92_timerExpire = checked(ADP.TimerCurrent() + ADP.TimerFromSeconds(seconds)); 111return !IsInfinite && ADP.TimerHasExpired(_timerExpire); 153milliseconds = ADP.TimerRemainingMilliseconds(_timerExpire);
System\Data\Odbc\Odbc32.cs (23)
15return ADP.InvalidOperation(SR.GetString(SR.Odbc_ConnectionClosed)); 20return ADP.InvalidOperation(SR.GetString(SR.Odbc_OpenConnectionNoOwner)); 25return ADP.Argument(SR.GetString(SR.Odbc_UnknownSQLType, sqltype.ToString())); 30return ADP.Argument(SR.GetString(SR.ODBC_GetSchemaRestrictionRequired)); 35return ADP.ArgumentOutOfRange(SR.GetString(SR.ODBC_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 81return ADP.DataAdapter(SR.GetString(SR.Odbc_NoMappingForSqlTransactionLevel, value.ToString(CultureInfo.InvariantCulture))); 86return ADP.Argument(SR.GetString(SR.Odbc_NegativeArgument)); 90return ADP.InvalidOperation(SR.GetString(SR.Odbc_CantSetPropertyOnOpenConnection)); 94return ADP.DataAdapter(SR.GetString(SR.Odbc_CantEnableConnectionpooling, ODBC32.RetcodeToString(retcode))); 98return ADP.DataAdapter(SR.GetString(SR.Odbc_CantAllocateEnvironmentHandle, ODBC32.RetcodeToString(retcode))); 102return ADP.DataAdapter(SR.GetString(SR.Odbc_FailedToGetDescriptorHandle, ODBC32.RetcodeToString(retcode))); 106return ADP.InvalidOperation(SR.GetString(SR.Odbc_NotInTransaction)); 110return ADP.InvalidEnumerationValue(typeof(OdbcType), (int)odbctype); 121return checked((short)ADP.StringLength(inputString)); 275internal static readonly IntPtr SQL_AUTOCOMMIT_OFF = ADP.PtrZero; 580internal static readonly IntPtr SQL_HANDLE_NULL = ADP.PtrZero; 773private static readonly TypeMap s_decimal = new TypeMap(OdbcType.Decimal, DbType.Decimal, typeof(decimal), ODBC32.SQL_TYPE.DECIMAL, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false); 780private static readonly TypeMap s_numeric = new TypeMap(OdbcType.Numeric, DbType.Decimal, typeof(decimal), ODBC32.SQL_TYPE.NUMERIC, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false); 882default: throw ADP.DbTypeNotSupported(dbType, typeof(OdbcType)); 890case TypeCode.Empty: throw ADP.InvalidDataType(TypeCode.Empty); 908throw ADP.UnknownDataType(dataType); 910case TypeCode.DBNull: throw ADP.InvalidDataType(TypeCode.DBNull); 931default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
System\Data\Odbc\OdbcCommand.cs (20)
28private int _commandTimeout = ADP.DefaultCommandTimeout; 188throw ADP.InvalidCommandTimeout(value); 200if (ADP.DefaultCommandTimeout != _commandTimeout) 203_commandTimeout = ADP.DefaultCommandTimeout; 209return (ADP.DefaultCommandTimeout != _commandTimeout); 234throw ADP.InvalidCommandType(value); 382throw ADP.InvalidUpdateRowSource(value); 546using (OdbcDataReader reader = ExecuteReaderObject(0, ADP.ExecuteNonQuery, false)) 561return ExecuteReaderObject(behavior, ADP.ExecuteReader, true); 574throw (ADP.CommandTextRequired(method)); 612throw ADP.OpenReaderExists(); // MDAC 66411 796throw ADP.InvalidOperation(method.ToString()); 847using (OdbcDataReader reader = ExecuteReaderObject(0, ADP.ExecuteScalar, false)) 882ValidateOpenConnection(ADP.Prepare); 886throw ADP.OpenReaderExists(); 941throw ADP.ConnectionRequired(methodName); 949throw ADP.OpenConnectionRequired(methodName, state); 957throw ADP.ConnectionRequired(method); 1106if (ADP.IsCatchableExceptionType(e)) 1129if (ADP.IsCatchableExceptionType(e))
System\Data\Odbc\OdbcCommandBuilder.cs (21)
107throw ADP.ArgumentNull(nameof(command)); 112throw ADP.DeriveParametersNotSupported(command); 117throw ADP.DeriveParametersNotSupported(command); 119throw ADP.InvalidCommandType(command.CommandType); 123throw ADP.CommandTextRequired(ADP.DeriveParameters); 130throw ADP.ConnectionRequired(ADP.DeriveParameters); 137throw ADP.OpenConnectionRequired(ADP.DeriveParameters, state); 178string quote = connection.QuoteChar(ADP.DeriveParameters); 256ADP.CheckArgumentNull(unquotedIdentifier, nameof(unquotedIdentifier)); 271throw ADP.QuotePrefixNotSet(ADP.QuoteIdentifier); 274quotePrefix = connection.QuoteChar(ADP.QuoteIdentifier); 283return ADP.BuildQuotedString(quotePrefix, quoteSuffix, unquotedIdentifier); 311ADP.CheckArgumentNull(quotedIdentifier, nameof(quotedIdentifier)); 326throw ADP.QuotePrefixNotSet(ADP.UnquoteIdentifier); 329quotePrefix = connection.QuoteChar(ADP.UnquoteIdentifier); 335ADP.RemoveStringQuotes(quotePrefix, quoteSuffix, quotedIdentifier, out unquotedIdentifier);
System\Data\Odbc\OdbcConnection.cs (19)
17private int _connectionTimeout = ADP.DefaultConnectionTimeout; 64DefaultValue(ADP.DefaultConnectionTimeout), 236ADP.TraceExceptionWithoutRethrow(e); 316throw ADP.OpenConnectionRequired(method, state); // MDAC 68323 336throw ADP.ConnectionIsDisabled(innerException); 573if (ADP.NeedManualEnlistment()) 590if (!ADP.IsCatchableOrSecurityExceptionType(e)) 594ADP.TraceExceptionWithoutRethrow(e); 613throw ADP.TransactionRequired(method); 618throw ADP.TransactionConnectionMismatch(); 629throw ADP.TransactionConnectionMismatch(); 644throw ADP.OpenReaderExists(); 646throw ADP.OpenConnectionRequired(method, state); 898CheckState(ADP.BeginTransaction); // MDAC 68323 904throw ADP.ParallelTransactionsNotSupported(this); 920throw ADP.InvalidIsolationLevel(isolevel); 937CheckState(ADP.ChangeDatabase); 942throw ADP.EmptyDatabaseName(); 946throw ADP.DatabaseNameTooLong();
System\Data\Odbc\OdbcConnectionHandle.cs (6)
27throw ADP.ArgumentNull(nameof(connection)); 31throw ADP.ArgumentNull(nameof(constr)); 110throw ADP.InvalidIsolationLevel(isolevel); 196retcode = Interop.Odbc.SQLDriverConnectW(this, ADP.PtrZero, connectionString, ODBC32.SQL_NTS, ADP.PtrZero, 0, out _, (short)ODBC32.SQL_DRIVER.NOPROMPT); 246ODBC32.SQLRETURN retcode = Interop.Odbc.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), ADP.PtrZero);
System\Data\Odbc\OdbcConnectionHelper.cs (3)
30ADP.CheckArgumentNull(connection, nameof(connection)); 104throw ADP.OpenConnectionPropertySet(nameof(ConnectionString), connectionInternal.State); 204throw ADP.NoConnectionString();
System\Data\Odbc\OdbcConnectionStringbuilder.cs (9)
56ADP.CheckArgumentNull(keyword, nameof(keyword)); 69ADP.CheckArgumentNull(keyword, nameof(keyword)); 81throw ADP.KeywordNotSupported(keyword); 188ADP.CheckArgumentNull(keyword, nameof(keyword)); 205throw ADP.KeywordNotSupported(s_validKeywords[(int)index]); 211ADP.CheckArgumentNull(keyword, nameof(keyword)); 240throw ADP.KeywordNotSupported(s_validKeywords[(int)index]); 246ADP.CheckArgumentNull(value, keyword); 252ADP.CheckArgumentNull(keyword, nameof(keyword));
System\Data\Odbc\OdbcDataAdapter.cs (1)
123OdbcRowUpdatingEventHandler? d = (OdbcRowUpdatingEventHandler?)ADP.FindBuilder(handler);
System\Data\Odbc\OdbcDataReader.cs (43)
157throw ADP.DataReaderClosed("Depth"); 169throw ADP.DataReaderClosed("FieldCount"); 199throw ADP.DataReaderClosed("HasRows"); 407throw ADP.DataReaderNoData(); 422throw ADP.DataReaderNoData(); 432throw ADP.DataReaderNoData(); 441throw ADP.DataReaderNoData(); 454throw ADP.DataReaderNoData(); 544throw ADP.DataReaderNoData(); 564throw ADP.DataReaderNoData(); 578throw ADP.DataReaderNoData(); 679throw ADP.DataReaderNoData(); 699throw ADP.DataReaderNoData(); 719throw ADP.DataReaderNoData(); 739throw ADP.DataReaderNoData(); 767throw ADP.DataReaderNoData(); 787throw ADP.DataReaderNoData(); 807throw ADP.DataReaderNoData(); 828throw ADP.DataReaderNoData(); 849throw ADP.DataReaderNoData(); 887throw ADP.DataReaderNoData(); 907throw ADP.DataReaderNoData(); 928throw ADP.DataReaderNoData(); 1035throw ADP.DataReaderNoData(); 1056throw ADP.DataReaderNoData(); 1085throw ADP.DataReaderNoData(); 1089throw ADP.DataReaderNoData(); 1094throw ADP.ArgumentOutOfRange(nameof(dataIndex)); 1098throw ADP.ArgumentOutOfRange(nameof(bufferIndex)); 1102throw ADP.ArgumentOutOfRange(nameof(length)); 1136throw ADP.ArgumentOutOfRange(nameof(dataIndex)); 1240throw ADP.InvalidCast(); 1277throw ADP.NonSeqByteAccess( 1322throw ADP.InvalidCast(); 1391throw ADP.InvalidCast(); 1723throw ADP.DataReaderNoData(); 1808throw ADP.DataReaderClosed("Read"); 1923throw ADP.DataReaderClosed("NextResult"); 2155QualifiedTableName qualifiedTableName = new QualifiedTableName(Connection.QuoteChar(ADP.GetSchemaTable)); 2171QualifiedTableName qualifiedTableName = new QualifiedTableName(Connection.QuoteChar(ADP.GetSchemaTable), GetTableNameFromCommandText()); 2226throw ADP.DataReaderClosed("GetSchemaTable"); // can't use closed connection 2722CStringTokenizer tokenstmt = new CStringTokenizer(localcmdtext, Connection!.QuoteChar(ADP.GetSchemaTable)[0], Connection.EscapeChar(ADP.GetSchemaTable));
System\Data\Odbc\OdbcHandle.cs (3)
71if ((ADP.PtrZero == base.handle) || (ODBC32.SQLRETURN.SUCCESS != retcode)) 111if (ADP.PtrZero == base.handle) 160Debug.Assert(ADP.PtrZero == handle, "unknown handle type");
System\Data\Odbc\OdbcMetaDataFactory.cs (20)
55throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.MetaDataCollections); 193throw ADP.OdbcNoTypesFromProvider(); 512throw ADP.TooManyRestrictions(collectionName); 562if (ADP.IsEmptyArray(restrictions) == false) 564throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataSourceInformation); 571throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataSourceInformation); 580throw ADP.IncorrectNumberOfDataSourceInformationRows(); 594ADP.EscapeSpecialCharacters(stringValue, patternEscaped); 721stringValue = connection.QuoteChar(ADP.GetSchema); 734ADP.EscapeSpecialCharacters(stringValue, scratchStringBuilder); 738ADP.EscapeSpecialCharacters(stringValue, scratchStringBuilder); 780if (ADP.IsEmptyArray(restrictions) == false) 782throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataTypes); 791throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes); 947throw ADP.InvalidRestrictionValue(OdbcMetaDataCollectionNames.Procedures, "PROCEDURE_TYPE", restrictions[indexOfProcedureType]); 964if (ADP.IsEmptyArray(restrictions) == false) 966throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.ReservedWords); 973throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 982throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 1126throw ADP.UnableToBuildCollection(collectionName);
System\Data\Odbc\OdbcParameter.cs (11)
322return Math.Min((int)_internalPrecision, ADP.DecimalMaxPrecision); 339throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 422return Math.Min((int)_internalPrecision, ADP.DecimalMaxPrecision); 478throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 550return ADP.DecimalMaxPrecision; 554return ADP.DecimalMaxPrecision28; 642throw ADP.OffsetOutOfRangeException(); 649throw ADP.OffsetOutOfRangeException(); 656throw ADP.OffsetOutOfRangeException(); 1005if (!ADP.IsCatchableExceptionType(e)) 1009throw ADP.ParameterConversionFailed(value, _typemap._type, e); // WebData 75433
System\Data\Odbc\OdbcParameterCollectionHelper.cs (15)
84throw ADP.ArgumentNull(nameof(values)); 102throw ADP.ParametersSourceIndex(parameterName, this, s_itemType); 148throw ADP.ParametersSourceIndex(parameterName, this, s_itemType); 171if (0 == ADP.DstCompare(parameterName, parameter.ParameterName)) 222throw ADP.ParametersMappingIndex(index, this); 237throw ADP.CollectionRemoveInvalidObject(s_itemType, this); 288throw ADP.ParametersSourceIndex(parameterName, this, s_itemType); 297throw ADP.ParameterNull(nameof(value), this, s_itemType); 305throw ADP.ParametersIsNotParent(s_itemType, this); 309throw ADP.ParametersIsParent(s_itemType, this); 324if (lastParameter.ParameterName.StartsWith(ADP.Parameter, StringComparison.Ordinal) 325&& int.TryParse(lastParameter.ParameterName.AsSpan(ADP.Parameter.Length), out int lastIndex)) 333name = ADP.Parameter + index.ToString(CultureInfo.CurrentCulture); 344throw ADP.ParameterNull(nameof(value), this, s_itemType); 348throw ADP.InvalidParameterType(this, s_itemType, value);
System\Data\Odbc\OdbcParameterHelper.cs (6)
28ADP.CheckArgumentNull(source, nameof(source)); 71throw ADP.InvalidParameterDirection(value); 100throw ADP.InvalidOffsetValue(value); 123throw ADP.InvalidSizeValue(value); 180throw ADP.InvalidDataRowVersion(value); 238if (!ADP.IsNull(value))
System\Data\Odbc\OdbcStatementHandle.cs (3)
69ODBC32.SQLRETURN retcode = Interop.Odbc.SQLBindCol(this, checked((ushort)columnNumber), targetType, ADP.PtrZero, ADP.PtrZero, srLen_or_Ind); 176ODBC32.SQLRETURN retcode = Interop.Odbc.SQLGetStmtAttrW(this, attribute, out value, ADP.PtrSize, out stringLength);
System\Data\Odbc\OdbcTransaction.cs (7)
44throw ADP.TransactionZombied(this); 73throw ADP.TransactionZombied(this); 76connection.CheckState(ADP.CommitTransaction); // MDAC 68289 116ADP.TraceExceptionWithoutRethrow(e); 123if (!ADP.IsCatchableExceptionType(e)) 147throw ADP.TransactionZombied(this); 149connection.CheckState(ADP.RollbackTransaction); // MDAC 68289
System\Data\Odbc\OdbcUtils.cs (1)
329IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset);