コード例 #1
0
 public void UpdateEntity(CODE_MARRIAGEEntity entity)
 {
     try
     {
         this.BaseRepository().Update(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }
コード例 #2
0
 public void PhysicalDelRecord(string keyValue)
 {
     try
     {
         CODE_MARRIAGEEntity entity = new CODE_MARRIAGEEntity()
         {
             MARRIAGEID = Convert.ToInt32(keyValue)
         };
         this.BaseRepository().Delete(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }