예제 #1
0
 public async Task <bool> AddMonitorAlarm(MonitorAlarm alarm)
 {
     alarm.Id = _idWorker.NextId();
     return(await freeSql.Insert <MonitorAlarm>(alarm).ExecuteAffrowsAsync() > 0);
 }
예제 #2
0
 public async Task <bool> AddMonitorAlarm(MonitorAlarm alarm)
 {
     alarm.Id = MD5_16(Guid.NewGuid().ToString());
     return(await freeSql.Insert <MonitorAlarm>(alarm).ExecuteAffrowsAsync() > 0);
 }