public void RollbackTransaction(NativeSessionHandle sessionHandle) { try { _nativeServer.RollbackTransaction(sessionHandle); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }
public void BeginTransaction(NativeSessionHandle sessionHandle, NativeIsolationLevel isolationLevel) { try { _nativeServer.BeginTransaction(sessionHandle, isolationLevel); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }
public NativeSessionHandle StartSession(NativeSessionInfo sessionInfo) { try { return(_nativeServer.StartSession(sessionInfo)); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }
public NativeResult[] SessionExecuteStatements(NativeSessionHandle sessionHandle, NativeExecuteOperation[] operations) { try { return(_nativeServer.Execute(sessionHandle, operations)); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }
public NativeResult SessionExecuteStatement(NativeSessionHandle sessionHandle, string statement, NativeParam[] paramsValue, NativeExecutionOptions options) { try { return(_nativeServer.Execute(sessionHandle, statement, paramsValue, options)); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }
public int GetTransactionCount(NativeSessionHandle sessionHandle) { try { return(_nativeServer.GetTransactionCount(sessionHandle)); } catch (NativeCLIException exception) { throw new FaultException <NativeCLIFault>(NativeCLIFaultUtility.ExceptionToFault(exception), exception.Message); } }