Deveel.Data.Client.ConnectionClient.MapIsolationLevel C# (CSharp) Method

MapIsolationLevel() private method

private MapIsolationLevel ( System isolationLevel ) : Deveel.Data.Transactions.IsolationLevel
isolationLevel System
return Deveel.Data.Transactions.IsolationLevel
        private IsolationLevel MapIsolationLevel(System.Data.IsolationLevel isolationLevel)
        {
            if (isolationLevel == System.Data.IsolationLevel.Serializable)
                return IsolationLevel.Serializable;
            if (isolationLevel == System.Data.IsolationLevel.Snapshot)
                return IsolationLevel.Snapshot;
            if (isolationLevel == System.Data.IsolationLevel.ReadCommitted)
                return IsolationLevel.ReadCommitted;
            if (isolationLevel == System.Data.IsolationLevel.ReadUncommitted)
                return IsolationLevel.ReadUncommitted;

            throw new NotSupportedException(String.Format("Isolation Level '{0}' not supported by DeveelDB", isolationLevel));
        }