using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EgtBEAMWALL.DbDataLayer.DatabaseModels { [Table("RawPartList")] public class RawPartModel { [Key, Column("RawPartDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int RawPartDbId { get; set; } [Column("RawPartId")] public int RawPartId { get; set; } [Column("RawPart_Descript")] public string Description { get; set; } = ""; [Column("RawPart_Lock")] public bool Locked { get; set; } = false; [Column("ProdDbId")] public int ProdDbId { get; set; } [ForeignKey("ProdDbId")] public ProdModel Prod { get; set; } } }