Пример #1
0
 public static void UpdateDataSet(this MSMO.ServerRole serverRole, Data.ApplicationDataSet.ServerRolesRow dataRow)
 {
     try
     {
         //dataRow.X = serverRole.X;
     }
     catch (Exception ex)
     {
         VNC.AppLog.Error(ex, LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 7);
         // TODO(crhodes):
         // Wrap anything above that throws an exception that we want to ignore,
         // e.g. property not available because of SQL Edition.
     }
 }
Пример #2
0
 private static void UpdateDatabaseWithSnapShot(Data.ApplicationDataSet.ServerRolesRow dataRow, string snapShotError)
 {
     try
     {
         dataRow.SnapShotDate  = DateTime.Now;
         dataRow.SnapShotError = snapShotError;
         Common.ApplicationDataSet.ServerRolesTA.Update(Common.ApplicationDataSet.ServerRoles);
     }
     catch (Exception ex)
     {
         string errorMessage = string.Format("ServerRolesRow.ID:{0} - ex:{1} ex.Inner:{2}", dataRow.ID, ex, ex.InnerException);
         VNC.AppLog.Error(errorMessage, LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 7);
     }
 }
Пример #3
0
 public static void UpdateDataSet(this MSMO.ServerRole serverRole, Data.ApplicationDataSet.ServerRolesRow serverRoleRow)
 {
     try
     {
         // Determine what might change and update it
     }
     catch (Exception ex)
     {
         // TODO(crhodes):  Need to wrap anything above that throws an exception
         // that we want to ignore, e.g. property not available because of
         // SQL Edition.
         PLLog.Error(ex, PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2);
         throw ex;
     }
 }