Files
CapMachine/CapMachine.Model/CANLIN/CanLinRWConfig.cs

75 lines
2.4 KiB
C#
Raw 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;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// CAN和LIN的配置数据内容 CanLinRWConfig
/// </summary>
//[Table(Name = "CanLinRWConfig")]
[Table(Name = "CanLinConfigContent")]
public class CanLinRWConfig
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 输入输出信息 读取/写入/系统
/// </summary>
[Column(Name = "RWInfo", IsNullable = false, MapType = typeof(string))]
public RW RWInfo { get; set; }
/// <summary>
/// 配置项名称-比如转速、功率限制等
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 配置项值
/// DBC里面的 消息名称 MsgId对应 帧名称
/// SDF里面的 Frame名称 帧名称
/// </summary>
[Column(Name = "MsgFrameName", IsNullable = false, StringLength = 100)]
public string? MsgFrameName { get; set; }
/// <summary>
/// 配置项值
/// DBC里面的信号名称
/// SDF里面的信号名称
/// </summary>
[Column(Name = "SignalName", IsNullable = false, StringLength = 100)]
public string? SignalName { get; set; }
/// <summary>
/// 配置项默认值和数据
/// </summary>
[Column(Name = "DefautValue", IsNullable = true, StringLength = 50)]
public string? DefautValue { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long CanLinConfigProId { get; set; }
public CanLinConfigPro? CanLinConfigPro { get; set; }
public long LogicRuleId { get; set; }
/// <summary>
/// CanLinConfig的逻辑转换规则
/// 比如速度下发的数据SV是4000但是下发到CAN的值是40可能是其他的逻辑转换规则这里就是保存其中的逻辑规则
/// </summary>
public LogicRule? LogicRule { get; set; }
}
}