Blame view

Models/WorkpieceModel.cs 622 Bytes
唐召明 authored
1
2
3
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
唐召明 authored
4
namespace DataAcquisition.Models
唐召明 authored
5
6
{
    [Comment("工件型号配置")]
7
    [Index(nameof(Flag), IsUnique = true)]
唐召明 authored
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    public class WorkpieceModel
    {
        [Key]
        [Comment("主键")]
        public int Id { get; set; }

        [Comment("编号")]
        public string Code { get; set; } = null!;

        [Comment("名称")]
        public string Name { get; set; } = null!;

        [Comment("标识")]
        public int Flag { get; set; }

        [Comment("备注")]
        public string? Remark { get; set; }
    }
}