Esempio n. 1
0
        internal static ArgumentOutOfRangeException NotSupportedCommandType(CommandType value)
        {
#if DEBUG
            switch (value)
            {
            case CommandType.Text:
            case CommandType.StoredProcedure:
                Debug.Fail("valid CommandType " + value.ToString());
                break;

            case CommandType.TableDirect:
                break;

            default:
                Debug.Fail("invalid CommandType " + value.ToString());
                break;
            }
#endif
            return(ODBC.NotSupportedEnumerationValue(typeof(CommandType), (int)value));
        }
Esempio n. 2
0
        internal static ArgumentOutOfRangeException NotSupportedIsolationLevel(IsolationLevel value)
        {
#if DEBUG
            switch (value)
            {
            case IsolationLevel.Unspecified:
            case IsolationLevel.ReadUncommitted:
            case IsolationLevel.ReadCommitted:
            case IsolationLevel.RepeatableRead:
            case IsolationLevel.Serializable:
            case IsolationLevel.Snapshot:
                Debug.Fail("valid IsolationLevel " + value.ToString());
                break;

            case IsolationLevel.Chaos:
                break;

            default:
                Debug.Fail("invalid IsolationLevel " + value.ToString());
                break;
            }
#endif
            return(ODBC.NotSupportedEnumerationValue(typeof(IsolationLevel), (int)value));
        }