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

70 lines
1.7 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CompressorXN_Model
{
/// <summary>
/// 发送和接收报文规则
/// </summary>
[SugarTable("t_agreement_detail_rule")]
public class T_Agreement_Detail_Rule
{
public T_Agreement_Detail_Rule()
{
Id = Guid.NewGuid().ToString();
}
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
public string Id { get; set; }
/// <summary>
/// 协议名称
/// </summary>
[SugarColumn(ColumnName = "agreement_name")]
public string AgreementName { get; set; }
/// <summary>
/// 报文类型 send发送 revice接收
/// </summary>
[SugarColumn(ColumnName = "msg_type")]
public string MsgType { get; set; }
/// <summary>
/// 报文名称
/// </summary>
[SugarColumn(ColumnName = "msg_name")]
public string MsgName { get; set; }
/// <summary>
/// 起始位
/// </summary>
[SugarColumn(ColumnName = "start_bit")]
public int StartBit { get; set; }
/// <summary>
/// 长度
/// </summary>
[SugarColumn(ColumnName = "len")]
public int Len { get; set; }
/// <summary>
/// 精度
/// </summary>
[SugarColumn(ColumnName = "precision")]
public decimal Precision { get; set; }
/// <summary>
/// 偏移量
/// </summary>
[SugarColumn(ColumnName = "offset")]
public decimal Offset { get; set; }
}
}