WorkpieceModel.cs
773 Bytes
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using IndexAttribute = Microsoft.EntityFrameworkCore.IndexAttribute;
namespace DataAcquisition.Models
{
[Comment("工件型号配置")]
[Table("WorkpieceModel")]
[Index(nameof(Flag), IsUnique = true)]
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; }
}
}