EquipmentProp.cs
933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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!;
}
}