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
{
///
/// Tabella dei PROJ caricati dal BTL
///
[Table("ProjList")]
public class ProjModel
{
#region Public Properties
[Column("Proj_BTLFileName")]
public string BTLFileName { get; set; } = "";
///
/// Stato NEW = creato ma NON salvato
///
[Column("Proj_IsNew")]
public bool IsNew { get; set; } = true;
///
/// Stato locked (quando aperto da un dispositivo in rete)
///
[Column("Proj_Lock")]
public bool Locked { get; set; } = false;
[ForeignKey("ProdDbId")]
public virtual ProdModel Prod { get; set; }
[Column("ProdDbId")]
public int? ProdDbId { get; set; }
[Key, Column("ProjDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ProjDbId { get; set; }
[Column("ProjId")]
public int ProjId { get; set; }
#endregion Public Properties
}
}