public void DeleteAlarmConfig(AlarmConfig alarm, DbTransaction tran) { Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("ID", alarm.ID); processor.ExecuteNonQuery("delete from alarmconfig where id=@ID", tran, dic); }
public bool InsertAlarmConfig(AlarmConfig alarm, DbTransaction tran) { return(processor.Insert <AlarmConfig>(alarm, tran)); }
public bool InsertAlarmConfig(AlarmConfig alarm) { return(InsertAlarmConfig(alarm, null)); }