public virtual void DesignerDrogLinkDelete(DesignerDrogLink entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdDesignerDrogLinkDelete(entity.ID);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
Esempio n. 2
0
   // -------------------------------------------------------------------------------------
   /// <summary>
   /// Copy constructor.
   /// </summary>
   /// <param name="IDVal">Value of 'uID' field</param>
   /// <param name="origInstance">Original document data to copy.</param>
   // -------------------------------------------------------------------------------------
   public DesignerDrogLink(DBGuid IDVal,
 DesignerDrogLink origInstance)
       : base(IDVal, origInstance)
   {
   }
Esempio n. 3
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public DesignerDrogLink(DesignerDrogLink origInstance)
     : base(origInstance)
 {
 }
 public virtual void DesignerDrogLinkUpdate(DesignerDrogLink entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdDesignerDrogLinkUpdate(entity.ID,
     entity.ItemRef,
     entity.Url,
     entity.Title,
     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 DesignerDrogLink DesignerDrogLinkSelect(DBGuid IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     DesignerDrogLink result = null;
     DataSet entitySet = m_DataContext.ndihdDesignerDrogLinkSelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new DesignerDrogLink(entitySet);
     }
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual void DesignerDrogLinkInsert(DesignerDrogLink entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdDesignerDrogLinkInsert(entity.ID,
     entity.ItemRef,
     entity.Url,
     entity.Title,
     entity.Description);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }