System.Data.Common.ADP.InvalidOperation(string, System.Exception)

Here are the examples of the csharp api class System.Data.Common.ADP.InvalidOperation(string, System.Exception) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

72 Examples 7

1. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DataAdapter(string error, Exception inner) {
            return InvalidOperation(error, inner);
        }

2. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException ConfigProviderInvalid() {
            return InvalidOperation(Res.GetString(Res.ConfigProviderInvalid));
        }

3. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidDataDirectory() {
            return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidDataDirectory));
        }

4. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfSecureAndClearCredential() {
            return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureAndClearCredential));
        }

5. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity() {
            return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity));
        }

6. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfSecureCredentialAndContextConnection()
       {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndContextConnection));
       }

7. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfAccessTokenAndContextConnection() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndContextConnection));
       }

8. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfAccessTokenAndIntegratedSecurity() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity));
       }

9. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException InvalidMixedUsageOfAccessTokenAndUserIDPassword() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword));
       }

10. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidMixedUsageOfAccessTokenAndCredential() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndCredential));
       }

11. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidMixedUsageOfAccessTokenAndAuthentication() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndAuthentication));
       }

12. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidMixedUsageOfCredentialAndAccessToken() {
           return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfCredentialAndAccessToken));
       }

13. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException NoConnectionString() {
            return InvalidOperation(Res.GetString(Res.ADP_NoConnectionString));
        }

14. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception OdbcNoTypesFromProvider() {
            return InvalidOperation(Res.GetString(Res.ADP_OdbcNoTypesFromProvider));
        }

15. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception PooledOpenTimeout() {
            return ADP.InvalidOperation(Res.GetString(Res.ADP_PooledOpenTimeout));
        }

16. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException CommandAsyncOperationCompleted() {
            return InvalidOperation(Res.GetString(Res.SQL_AsyncOperationCompleted));
        }

17. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception CommandTextRequired(string method) {
            return InvalidOperation(Res.GetString(Res.ADP_CommandTextRequired, method));
        }

18. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException ConnectionRequired(string method) {
            return InvalidOperation(Res.GetString(Res.ADP_ConnectionRequired, method));
        }

19. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException ConnectionRequired_Res(string method) {
            string resource = "ADP_ConnectionRequired_" + method;
#if DEBUG
            switch(resource) {
            case Res.ADP_ConnectionRequired_Fill:
            case Res.ADP_ConnectionRequired_FillPage:
            case Res.ADP_ConnectionRequired_FillSchema:
            case Res.ADP_ConnectionRequired_Update:
            case Res.ADP_ConnecitonRequired_UpdateRows:
                break;
            default:
                Debug.Assert(false, "missing resource string: " + resource);
                break;
            }
#endif
            return InvalidOperation(Res.GetString(resource));
        }

20. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NoStoredProcedureExists(string sproc) {
            return InvalidOperation(Res.GetString(Res.ADP_NoStoredProcedureExists, sproc));
        }

21. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception OpenReaderExists(Exception e) {
            return InvalidOperation(Res.GetString(Res.ADP_OpenReaderExists), e);
        }

22. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NonSeqByteAccess(long badIndex, long currIndex, string method) {
            return InvalidOperation(Res.GetString(Res.ADP_NonSeqByteAccess, badIndex.ToString(CultureInfo.InvariantCulture), currIndex.ToString(CultureInfo.InvariantCulture), method));
        }

23. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NegativeParameter(string parameterName) {
            return InvalidOperation(Res.GetString(Res.ADP_NegativeParameter, parameterName));
        }

24. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NotRowType() {
            return InvalidOperation(Res.GetString(Res.ADP_NotRowType));
        }

25. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException NonSequentialColumnAccess(int badCol, int currCol) {
            return InvalidOperation(Res.GetString(Res.ADP_NonSequentialColumnAccess, badCol.ToString(CultureInfo.InvariantCulture), currCol.ToString(CultureInfo.InvariantCulture)));
        }

26. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception FillChapterAutoIncrement() {
            return InvalidOperation(Res.GetString(Res.ADP_FillChapterAutoIncrement));
        }

27. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException UpdateRequiresSourceTable(string defaultSrcTableName) {
            return InvalidOperation(Res.GetString(Res.ADP_UpdateRequiresSourceTable, defaultSrcTableName));
        }

28. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException UpdateRequiresSourceTableName(string srcTable) {
            return InvalidOperation(Res.GetString(Res.ADP_UpdateRequiresSourceTableName, srcTable)); // MDAC 70448
        }

29. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception UninitializedParameterSize(int index, Type dataType) {
            return InvalidOperation(Res.GetString(Res.ADP_UninitializedParameterSize, index.ToString(CultureInfo.InvariantCulture), dataType.Name));
        }

30. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception PrepareParameterType(IDbCommand cmd) {
            return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterType, cmd.GetType().Name));
        }

31. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception PrepareParameterSize(IDbCommand cmd) {
            return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterSize, cmd.GetType().Name));
        }

32. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception PrepareParameterScale(IDbCommand cmd, string type) {
            return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterScale, cmd.GetType().Name, type));
        }

33. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception MismatchedAsyncResult(string expectedMethod, string gotMethod) {
            return InvalidOperation(Res.GetString(Res.ADP_MismatchedAsyncResult, expectedMethod, gotMethod));
        }

34. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception ConnectionIsDisabled (Exception InnerException) {
            return InvalidOperation(Res.GetString(Res.ADP_ConnectionIsDisabled), InnerException);
        }

35. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception ClosedConnectionError() {
            return InvalidOperation(Res.GetString(Res.ADP_ClosedConnectionError));
        }

36. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception DelegatedTransactionPresent() {
            return InvalidOperation(Res.GetString(Res.ADP_DelegatedTransactionPresent));
        }

37. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception TransactionPresent() {
            return InvalidOperation(Res.GetString(Res.ADP_TransactionPresent));
        }

38. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception LocalTransactionPresent() {
            return InvalidOperation(Res.GetString(Res.ADP_LocalTransactionPresent));
        }

39. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InternalConnectionError(ConnectionError internalError) {
            return InvalidOperation(Res.GetString(Res.ADP_InternalConnectionError, (int)internalError));
        }

40. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InternalError(InternalErrorCode internalError) {
            return InvalidOperation(Res.GetString(Res.ADP_InternalProviderError, (int)internalError));
        }

41. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InternalError(InternalErrorCode internalError, Exception innerException) {
            return InvalidOperation(Res.GetString(Res.ADP_InternalProviderError, (int)internalError), innerException);
        }

42. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception DataReaderNoData() {
            return InvalidOperation(Res.GetString(Res.ADP_DataReaderNoData));
        }

43. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception DataReaderClosed(string method) {
            return InvalidOperation(Res.GetString(Res.ADP_DataReaderClosed, method));
        }

44. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException AsyncOperationPending() {
            return InvalidOperation(Res.GetString(Res.ADP_PendingAsyncOperation));
        }

45. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception StreamClosed(string method) {
            return InvalidOperation(Res.GetString(Res.ADP_StreamClosed, method));
        }

46. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DynamicSQLJoinUnsupported() {
            return InvalidOperation(Res.GetString(Res.ADP_DynamicSQLJoinUnsupported));
        }

47. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DynamicSQLNoTableInfo() {
            return InvalidOperation(Res.GetString(Res.ADP_DynamicSQLNoTableInfo));
        }

48. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DynamicSQLNoKeyInfoDelete() {
            return InvalidOperation(Res.GetString(Res.ADP_DynamicSQLNoKeyInfoDelete));
        }

49. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DynamicSQLNoKeyInfoUpdate() {
            return InvalidOperation(Res.GetString(Res.ADP_DynamicSQLNoKeyInfoUpdate));
        }

50. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal InvalidOperationException DynamicSQLNoKeyInfoRowVersionDelete() {
            return InvalidOperation(Res.GetString(Res.ADP_DynamicSQLNoKeyInfoRowVersionDelete));
        }