Beispiel #1
0
 public void UpdateEntity(CODE_FREQUENCYEntity entity)
 {
     try
     {
         this.BaseRepository().Update(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }
Beispiel #2
0
 public void PhysicalDelRecord(string keyValue)
 {
     try
     {
         CODE_FREQUENCYEntity entity = new CODE_FREQUENCYEntity()
         {
             ID = Convert.ToInt32(keyValue)
         };
         this.BaseRepository().Delete(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }