public int BeginTransaction(IsolationLevel isolationLevel) { var response = SendMessage(new BeginRequest(isolationLevel)) as BeginResponse; if (response == null) { throw new InvalidOperationException(); } return(response.CommitId); }
ITransaction IDatabase.CreateTransaction(IsolationLevel isolationLevel) { if (isolationLevel == IsolationLevel.Unspecified) { isolationLevel = IsolationLevel.Serializable; } if (isolationLevel != IsolationLevel.Serializable) { throw new NotSupportedException(); } return(CreateTransaction()); }
public int BeginTransaction(IsolationLevel isolationLevel) { var response = SendMessage(new BeginRequest(isolationLevel)) as BeginResponse; if (response == null) throw new InvalidOperationException(); return response.CommitId; }