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)); }
public int BeginTransaction(System.Data.IsolationLevel isolationLevel) { var isolation = MapIsolationLevel(isolationLevel); return(BeginTransaction(isolation)); }