38 lines
974 B
C#
38 lines
974 B
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>
|
|
/// Tabella dei grezzi
|
|
/// </summary>
|
|
[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_State")]
|
|
public RawPartState State { get; set; } = RawPartState.ND;
|
|
|
|
[Column("RawPart_Assign")]
|
|
public string Assign { get; set; } = "";
|
|
|
|
[Column("ProdDbId")]
|
|
public int ProdDbId { get; set; }
|
|
|
|
[ForeignKey("ProdDbId")]
|
|
public ProdModel Prod { get; set; }
|
|
}
|
|
}
|