kazelee
2025-05-15 1af49bdb3cdaa44a7e44ebdc843fb8180596365f
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
39
40
using System.Collections.Generic;
 
using SqlSugar;
 
namespace HH.WCS.Mobox3.DSZSH.Models {
    /// <summary>
    /// 【框架】货位-容器 关系表
    /// </summary>
    [SugarTable("TN_Loc_Container")]
    public class TN_Loc_Container : BaseModel {
 
        #region 基本属性关系
        /// <summary>
        /// 货位号
        /// </summary>
        public string S_LOC_CODE { get; set; }
 
        /// <summary>
        /// 容器号
        /// </summary>
        public string S_CNTR_CODE { get; set; } 
 
 
        #endregion
 
        /// <summary>
        /// 容器类型
        /// </summary>
        public string S_CNTR_TYPE { get; set; }
 
 
        // 容器-物料 1:n
        [Navigate(NavigateType.OneToMany, nameof(TN_CG_Detail.S_CNTR_CODE))]
        public List<TN_CG_Detail> CntrItemRels { get; set; }
 
        // 容器关系表-容器 1:1
        [Navigate(NavigateType.OneToOne, nameof(S_CNTR_CODE))]
        public TN_Container Container { get; set; }
    }
}