public virtual void KefCategoryUpdate(KefCategory entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdKefCategoryUpdate(entity.ID,
                                        entity.Name,
                                        entity.Multiple,
                                        entity.Download, 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 KefCategory KefCategorySelect(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     KefCategory result = null;
     DataSet entitySet = m_DataContext.ndihdKefCategorySelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new KefCategory(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 KefCategory(DBString IDVal,
                KefCategory origInstance)
     : base(IDVal, origInstance)
 {
 }
 public virtual void KefCategoryInsert(KefCategory entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdKefCategoryInsert(entity.ID,
                                        entity.Name,
                                        entity.Multiple,
                                        entity.Download);
       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 KefCategory(KefCategory origInstance)
     : base(origInstance)
 {
 }