You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace HBLConsole.Model
  9. {
  10. /// <summary>
  11. /// 模拟量报警模块
  12. /// </summary>
  13. public class AnalogAlarmModel
  14. {
  15. [Key]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 设定报警值
  19. /// </summary>
  20. public int AlarmValue { get; set; } = 0;
  21. /// <summary>
  22. /// 是否启用该报警
  23. /// </summary>
  24. public bool IsEnable { get; set; }
  25. /// <summary>
  26. /// 报警信息
  27. /// </summary>
  28. public string AlarmInfo { get; set; }
  29. /// <summary>
  30. /// 报警标签
  31. /// </summary>
  32. public string AlarmTag { get; set; }
  33. /// <summary>
  34. /// 排序标签
  35. /// </summary>
  36. public EAnalogAlarmType SortTag { get; set; }
  37. /// <summary>
  38. /// 设置外键
  39. /// </summary>
  40. [ForeignKey("AlarmSetId")]
  41. public int AlarmSetId { get; set; }
  42. /// <summary>
  43. /// 设置导航属性
  44. /// </summary>
  45. public AlarmSet AlarmSet { get; set; }
  46. }
  47. }