using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace EgtBEAMWALL.DataLayer.DatabaseModels
{
///
/// Tabelal delle singole istsanze prodotte\
///
[Table("PartList")]
public class PartModel
{
#region Public Properties
[ForeignKey("BTLPartDbId")]
public BTLPartModel BTLPart { get; set; }
[Column("BTLPartDbId")]
public int BTLPartDbId { get; set; }
[Column("CalcState")]
public int CALC_State { get; set; } = -1;
[Column("GRP")]
public string GRP { get; set; } = "";
[Column("H")]
public double H { get; set; } = 0;
[Column("L")]
public double L { get; set; } = 0;
[ForeignKey("MachGroupDbId")]
public virtual MachGroupModel MachGroup { get; set; }
[Column("MachGroupDbId")]
public int? MachGroupDbId { get; set; }
[Column("Material")]
public string Material { get; set; } = "";
[Column("NAM")]
public string NAM { get; set; } = "";
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PartDbId { get; set; }
[Column("Id")]
public int PartId { get; set; }
[Column("PDN")]
public int PDN { get; set; } = 0;
[Column("ROT")]
public int ROT { get; set; } = 0;
///
/// Stato della singola Part (da enum)
///
[Column("State")]
public Core.ItemState State { get; set; } = Core.ItemState.ND;
[Column("W")]
public double W { get; set; } = 0;
#endregion Public Properties
}
}