using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EgwProxy.DataLayer.DbModel { /// /// Tabella dei LOG Macchina /// [Table("LogMachine")] public class LogMachineModel { #region Public Properties /// /// Chiave primaria evento LOG /// [Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int LogDbId { get; set; } /// /// Stato da enum Core /// [Column("EvType")] public Core.MachLog.MachLogTypes EvType { get; set; } = Core.MachLog.MachLogTypes.NULL; /// /// Data Evento /// [Column("DtEvent")] public DateTime DtEvent { get; set; } = DateTime.Now; /// /// Indirizzo VAR (Supervisore) /// [Column("VarAddress")] public string VarAddress { get; set; } = ""; /// /// Valore VAR /// [Column("VarValue")] public string VarValue { get; set; } = ""; /// /// Data di invio evento (su cloud) /// [Column("DtSent")] public DateTime? DtSent { get; set; } = null; #endregion Public Properties } }