Beispiel #1
0
        /* Delete from SGAlarmInfo */
        public bool DeleteAlarmInfo(SGAlarmData alarmData)
        {
            // Delete
            DBCtx.Remove(alarmData);
            DBCtx.SaveChanges();
            Log.Information("Delete the SGAlarmData, {AlarmData}", alarmData);

            return(true);
        }
Beispiel #2
0
 /* Delete from SGAlarmInfo */
 public bool DeleteAlarmInfo(SGAlarmData alarmData)
 {
     mut.WaitOne();
     // Delete
     DBCtx.Remove(alarmData);
     DBCtx.SaveChanges();
     Log.Information("Delete the SGAlarmData, {AlarmData}", alarmData);
     mut.ReleaseMutex();
     return(true);
 }