using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core.DB.Models;
|
|
namespace WIDESEAWCS_Model.Models
|
{
|
[SugarTable(nameof(Dt_Boxing), "组盘信息表")]
|
public class Dt_Boxing : BaseEntity
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 工装板编号
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "工装板编号")]
|
public string PalletCode { get; set; }
|
|
/// <summary>
|
/// 成品编号
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "成品编号")]
|
public string ProductCode { get; set; }
|
|
/// <summary>
|
/// 成品名称
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "成品名称")]
|
public string ProductName { get; set; }
|
|
[SugarColumn(IsIgnore = true)]//不参与数据库映射,测试使用
|
[Navigate(NavigateType.OneToMany, nameof(Dt_BoxingDetail.BoxingId), nameof(Id))]
|
public List<Dt_BoxingDetail> Details { get; set; }
|
}
|
}
|