using SqlSugar; using System; namespace CompressorXN_Model { /// /// 协议配置 /// [SugarTable("t_agreement_config")] public class T_Agreement_Config { public T_Agreement_Config() { Id = Guid.NewGuid().ToString(); } /// /// 主键 /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] public string Id { get; set; } /// /// 协议名称 /// [SugarColumn(ColumnName = "name")] public string AgreementName { get; set; } /// /// 波特率 /// [SugarColumn(ColumnName = "bps")] public int Bps { get; set; } /// /// 报文格式 /// [SugarColumn(ColumnName = "msg_format")] public string MsgFormat { get; set; } /// /// 帧类型 /// [SugarColumn(ColumnName = "frame_type")] public string FrameType { get; set; } /// /// 报文发送周期 /// [SugarColumn(ColumnName = "send_period")] public int SendPeriod { get; set; } /// /// 报文发送ID /// [SugarColumn(ColumnName = "send_id")] public string SendId { get; set; } /// /// 报文发送帧长度 /// [SugarColumn(ColumnName = "frame_len")] public int FrameLen { get; set; } /// /// 报文接收周期 /// [SugarColumn(ColumnName = "recive_period")] public int RecivePeriod { get; set; } /// /// 报文接收ID /// [SugarColumn(ColumnName = "recive_id")] public string ReciveId { get; set; } /// /// 报文接收信号值 /// [SugarColumn(ColumnName = "recive_signal_val")] public string ReciveSignalVal { get; set; } } }