public virtual void KefContactTypeUpdate(KefContactType entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdKefContactTypeUpdate(entity.ID,
                                           entity.Name,
                                           entity.Multiple,
                                           entity.Rank, 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 KefContactType KefContactTypeSelect(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     KefContactType result = null;
     DataSet entitySet = m_DataContext.ndihdKefContactTypeSelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new KefContactType(entitySet);
     }
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
예제 #3
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="IDVal">Value of 'cID' field</param>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public KefContactType(DBString IDVal,
                   KefContactType origInstance)
     : base(IDVal, origInstance)
 {
 }
 public virtual void KefContactTypeInsert(KefContactType entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdKefContactTypeInsert(entity.ID,
                                           entity.Name,
                                           entity.Multiple,
                                           entity.Rank);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
예제 #5
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public KefContactType(KefContactType origInstance)
     : base(origInstance)
 {
 }