public virtual void EDocumentTypeUpdate(EDocumentType entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { int count; m_DataContext.ndihdEDocumentTypeUpdate(entity.ID, entity.Name, entity.Description, out count); if (count == 0) throw new ServiceUpdateException(); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public virtual EDocumentType EDocumentTypeSelect(DBString IDVal) { TraceCallEnterEvent.Raise(); try { EDocumentType result = null; DataSet entitySet = m_DataContext.ndihdEDocumentTypeSelect(IDVal); if (entitySet.Tables[0].Rows.Count != 0) { result = new EDocumentType(entitySet); } TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="IDVal">Value of 'cID' field</param> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public EDocumentType(DBString IDVal, EDocumentType origInstance) : base(IDVal, origInstance) { }
public virtual void EDocumentTypeInsert(EDocumentType entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { m_DataContext.ndihdEDocumentTypeInsert(entity.ID, entity.Name, entity.Description); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public EDocumentType(EDocumentType origInstance) : base(origInstance) { }