Equipment.cs
821 Bytes
using Microsoft.EntityFrameworkCore;
using S7.Net;
using System.ComponentModel.DataAnnotations.Schema;
namespace AutomaticGrooveCalculationTool.Model
{
[Comment("设备表")]
public class Equipment
{
public Equipment()
{
EquipmentProps = new List<EquipmentProp>();
}
[Column(Order = 0)]
public int Id { get; set; }
[Column(Order = 1)]
public string Code { get; set; } = null!;
[Column(Order = 2)]
public string Name { get; set; } = null!;
[Column(Order = 3)]
public string IP { get; set; } = null!;
[Column(Order = 4, TypeName = "nvarchar(25)")]
public CpuType CpuType { get; set; }
[Column(Order = 5)]
public List<EquipmentProp> EquipmentProps { get; set; }
}
}