CAN FD 增加逻辑功能
This commit is contained in:
52
CapMachine.Model/LogicRule.cs
Normal file
52
CapMachine.Model/LogicRule.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using CapMachine.Model.CANLIN;
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace CapMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 逻辑转换规则模型
|
||||
/// </summary>
|
||||
[Table(Name = "LogicRule")]
|
||||
public class LogicRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则名称
|
||||
/// </summary>
|
||||
[Column(Name = "Name", StringLength = 50)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则描述
|
||||
/// </summary>
|
||||
[Column(Name = "Description", StringLength = 200)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则表达式
|
||||
/// </summary>
|
||||
[Column(Name = "Expression", StringLength = 500)]
|
||||
public string? Expression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 适用的参数类型(如:转速、功率等)
|
||||
/// </summary>
|
||||
[Column(Name = "ParameterType", StringLength = 50)]
|
||||
public string? ParameterType { get; set; }
|
||||
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
public List<CanLinRWConfig>? CanLinRWConfigs { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user