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("BTLFileName")] public string BTLFileName { get; set; } = ""; /// /// Data Creazione /// [Column("CreateDate")] public DateTime DtCreated { get; set; } /// /// Data Esportazione /// [Column("ExportDate")] public DateTime DtExported { get; set; } /// /// Stato NEW = creato ma NON salvato /// [Column("IsNew")] public bool IsNew { get; set; } = true; /// /// ListName del BTL /// [Column("ListName")] public string ListName { get; set; } = ""; /// /// Stato locked (quando aperto da un dispositivo in rete) /// [Column("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("Id")] public int ProjId { get; set; } #endregion Public Properties } }