コード例 #1
0
 public void UpdateEntity(CODE_FAMILYRELATIONEntity 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_FAMILYRELATIONEntity entity = new CODE_FAMILYRELATIONEntity()
         {
             RELATIONID = Convert.ToInt32(keyValue),
         };
         this.BaseRepository().Delete(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }