示例#1
0
        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);
        }
示例#2
0
 public bool InsertAlarmConfig(AlarmConfig alarm, DbTransaction tran)
 {
     return(processor.Insert <AlarmConfig>(alarm, tran));
 }
示例#3
0
 public bool InsertAlarmConfig(AlarmConfig alarm)
 {
     return(InsertAlarmConfig(alarm, null));
 }