public bool SetServer (OciServerHandle handle) { server = handle; int status = OciCalls.OCIAttrSet (this, HandleType, server, 0, OciAttributeType.Server, ErrorHandle); return (status == 0); }
public bool SetSession (OciSessionHandle handle) { session = handle; int status = OciCalls.OCIAttrSet (this, HandleType, session, 0, OciAttributeType.Session, ErrorHandle); return (status == 0); }
public void DetachFromServiceContext() { int status = 0; status = OciCalls.OCIAttrSet(Service, OciHandleType.Service, IntPtr.Zero, 0, OciAttributeType.Transaction, ErrorHandle); if (status != 0) { OciErrorInfo info = ErrorHandle.HandleError(); throw new OracleException(info.ErrorCode, info.ErrorMessage); } }