56 lines
1.5 KiB
C#
56 lines
1.5 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>
|
|
/// Tabella dei grezzi
|
|
/// </summary>
|
|
[Table("MachGroupList")]
|
|
public class MachGroupModel
|
|
{
|
|
#region Public Properties
|
|
|
|
[Column("MachGroup_Assign")]
|
|
public string Assign { get; set; } = "";
|
|
|
|
[Column("MachGroup_Descript")]
|
|
public string Description { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Stato locked (quando aperto da un dispositivo in rete)
|
|
/// </summary>
|
|
[Column("MachGroup_Lock")]
|
|
public bool Locked { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Indice di revisione (per recupero rapido modifiche)
|
|
/// </summary>
|
|
[Column("MachGroupLogRev")]
|
|
public int LogRev { get; set; } = 0;
|
|
|
|
[Key, Column("MachGroupDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int MachGroupDbId { get; set; }
|
|
|
|
[Column("MachGroupId")]
|
|
public int MachGroupId { get; set; }
|
|
|
|
[ForeignKey("ProdDbId")]
|
|
public ProdModel Prod { get; set; }
|
|
|
|
[Column("ProdDbId")]
|
|
public int ProdDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// MachGroup state
|
|
/// </summary>
|
|
[Column("MachGroup_State")]
|
|
public ItemState State { get; set; } = ItemState.ND;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |