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.
 
 

42 lines
983 B

  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. [Table(nameof(DiscreteAlarmInfo))]
  14. public class DiscreteAlarmInfo
  15. {
  16. [Key]
  17. public int Id { get; set; }
  18. /// <summary>
  19. /// 沿报警(上升沿,下降沿)
  20. /// </summary>
  21. public string TrigAlarm { get; set; }
  22. /// <summary>
  23. /// 报警信息
  24. /// </summary>
  25. public string AlarmInfo { get; set; }
  26. /// <summary>
  27. /// 设置外键
  28. /// </summary>
  29. [ForeignKey("AlarmSetId")]
  30. public int AlarmSetId { get; set; }
  31. /// <summary>
  32. /// 设置导航属性
  33. /// </summary>
  34. public AlarmSet AlarmSet { get; set; }
  35. }
  36. }