using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HBLConsole.Model { /// /// 模拟量报警模块 /// public class AnalogAlarmModel { [Key] public int Id { get; set; } /// /// 设定报警值 /// public int AlarmValue { get; set; } = 0; /// /// 是否启用该报警 /// public bool IsEnable { get; set; } /// /// 报警信息 /// public string AlarmInfo { get; set; } /// /// 报警标签 /// public string AlarmTag { get; set; } /// /// 排序标签 /// public EAnalogAlarmType SortTag { get; set; } /// /// 设置外键 /// [ForeignKey("AlarmSetId")] public int AlarmSetId { get; set; } /// /// 设置导航属性 /// public AlarmSet AlarmSet { get; set; } } }