69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Tabelal delle singole istsanze prodotte\
|
|
/// </summary>
|
|
[Table("PartList")]
|
|
public class PartModel
|
|
{
|
|
[Key, Column("PartDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int PartDbId { get; set; }
|
|
|
|
[Column("PartId")]
|
|
public int PartId { get; set; }
|
|
|
|
[Column("Part_PDN")]
|
|
public int PDN { get; set; } = 0;
|
|
|
|
[Column("Part_NAM")]
|
|
public string NAM { get; set; } = "";
|
|
|
|
[Column("Part_W")]
|
|
public double W { get; set; } = 0;
|
|
|
|
[Column("Part_L")]
|
|
public double L { get; set; } = 0;
|
|
|
|
[Column("Part_H")]
|
|
public double H { get; set; } = 0;
|
|
|
|
[Column("Part_MAT")]
|
|
public string MAT { get; set; } = "";
|
|
|
|
[Column("Part_ROT")]
|
|
public int ROT { get; set; } = 0;
|
|
|
|
[Column("Part_GRP")]
|
|
public string GRP { get; set; } = "";
|
|
|
|
[Column("Part_CalcState")]
|
|
public int CALC_State { get; set; } = -1;
|
|
|
|
/// <summary>
|
|
/// Stato della singola Part (da enum)
|
|
/// </summary>
|
|
[Column("Part_State")]
|
|
public PartState State { get; set; } = PartState.ND;
|
|
|
|
[Column("BTLPartDbId")]
|
|
public int BTLPartDbId { get; set; }
|
|
|
|
[ForeignKey("BTLPartDbId")]
|
|
public BTLPartModel BTLPart { get; set; }
|
|
|
|
[Column("RawPartDbId")]
|
|
public int? RawPartDbId { get; set; }
|
|
|
|
[ForeignKey("RawPartDbId")]
|
|
public virtual RawPartModel RawPart { get; set; }
|
|
|
|
}
|
|
}
|