Esempio n. 1
0
 public virtual void Delete(SMC_AutoTableID entity)
 {
     try
     {
         SMC_AutoTableIDDao.Delete(entity);
     }
     catch (DalException ex)
     {
         throw new BOException("????????????", ex);
     }
 }
Esempio n. 2
0
 public virtual int Save(SMC_AutoTableID entity)
 {
     if (SMC_AutoTableIDDao.Get(entity.at_id) == null)
     {
         return(SMC_AutoTableIDDao.Insert(entity));
     }
     else
     {
         return(SMC_AutoTableIDDao.Update(entity));
     }
 }