EquipmentProp.cs 933 Bytes
using Microsoft.EntityFrameworkCore;
using S7.Net;
using System.ComponentModel.DataAnnotations.Schema;

namespace AutomaticGrooveCalculationTool.Model
{
    [Comment("设备属性")]
    public class EquipmentProp
    {
        public EquipmentProp()
        {
            Equipment = new Equipment();
        }

        [Column(Order = 0)]
        public int Id { get; set; }

        [Column(Order = 1)]
        public int EquipmentId { get; set; }

        public Equipment Equipment { get; set; }

        [Column(Order = 2)]
        public string Code { get; set; } = null!;

        [Column(Order = 3)]
        public string Name { get; set; } = null!;

        [Column(Order = 4)]
        public string Address { get; set; } = null!;

        [Column(Order = 5, TypeName = "nvarchar(25)")]
        public VarType VarType { get; set; }

        [Column(Order = 6)]
        public string Value { get; set; } = null!;
    }
}