Files
CapMachine/CapMachine.Model/CANLIN/LINScheduleConfig.cs

72 lines
2.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using FreeSql.DataAnnotations;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// 调度表的配置
/// 其实这些调度表是在LDF中有的但是图莫斯的驱动没有读取到这些信息
/// 那么我们在系统层面进行操作和保存这些信息
/// </summary>
[Table(Name = "LINScheduleConfig")]
public class LINScheduleConfig
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column(Name = "IsActive")]
public bool IsActive { get; set; }
/// <summary>
/// 帧/报文是否被选中(属于当前调度表内生效的帧)
/// </summary>
[Column(Name = "IsMsgActived")]
public bool IsMsgActived { get; set; }
/// <summary>
/// 消息名称/帧名称
/// </summary>
[Column(Name = "MsgName")]
public string? MsgName { get; set; }
/// <summary>
/// 消息名称/帧名称的Index
/// </summary>
[Column(Name = "MsgNameIndex")]
public int MsgNameIndex { get; set; }
/// <summary>
/// 消息的周期
/// </summary>
[Column(Name = "Cycle")]
public int Cycle { get; set; }
/// <summary>
/// 调度表的Index
/// LDF中可能有多个调度器
/// </summary>
[Column(Name = "SchTabIndex")]
public int SchTabIndex { get; set; }
/// <summary>
/// 调度表的名称
/// LDF中可能有多个调度器名称
/// </summary>
[Column(Name = "SchTabName")]
public string? SchTabName { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long CanLinConfigProId { get; set; }
public CanLinConfigPro? CanLinConfigPro { get; set; }
}
}