// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="RegionSearchCodeVal">Value of 'cRegionSearchCode' field</param> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public RegionSearch(DBString RegionSearchCodeVal, RegionSearch origInstance) : base(RegionSearchCodeVal, origInstance) { }
// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public RegionSearch(RegionSearch origInstance) : base(origInstance) { }
public virtual RegionSearch RegionSearchSelect(DBString RegionSearchCodeVal) { TraceCallEnterEvent.Raise(); try { RegionSearch result = null; DataSet entitySet = m_DataContext.ndihdRegionSearchSelect(RegionSearchCodeVal); if (entitySet.Tables[0].Rows.Count != 0) { result = new RegionSearch(entitySet); } TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public virtual void RegionSearchUpdate(RegionSearch entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { int count; m_DataContext.ndihdRegionSearchUpdate(entity.RegionSearchCode, entity.RegionDescription, 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 void RegionSearchInsert(RegionSearch entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { m_DataContext.ndihdRegionSearchInsert(entity.RegionSearchCode, entity.RegionDescription); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }