using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CK.SCP.Models.ScpEntity { public partial class TA_VEND_PART { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long UID { get; set; } [Key] [Column(Order = 0)] [StringLength(50)] public string VendId { get; set; } [Key] [Column(Order = 1)] [StringLength(50)] public string PartCode { get; set; } [Key] [Column(Order = 2)] [StringLength(50)] public string VendPartCode { get; set; } public decimal VendPackQty { get; set; } [StringLength(50)] public string PoUnit { get; set; } public int State { get; set; } [StringLength(500)] public string Remark { get; set; } [NotMapped] [DisplayName("供应商名称")] public string VendName => ScpCache.GetVendName(VendId); [NotMapped] [DisplayName("零件名称")] public string PartName => ScpCache.GetVendName(PartCode); } }