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 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; } = DateTime.MinValue; // 2024.02.26 rimossi perché non impiegati #if false /// /// Codice Allarme /// [Column("AlarmCode")] public string AlarmCode { get; set; } = ""; /// /// Messaggio Allarme /// [Column("AlarmMessage")] public string AlarmMessage { get; set; } = ""; /// /// Alarm Operation /// [Column("AlarmOperation")] public int AlarmOperation { get; set; } = 0; /// /// Alarm Type /// [Column("AlarmType")] public int AlarmType { get; set; } = 0; /// /// Esaecuzione comando corretta /// [Column("CommExecuted")] public bool CommandExecutedCorrectly { get; set; } = false; /// /// Stato da enum Core /// [Column("CommandState")] public Core.ConstMachComm.CommandStates CommandState { get; set; } = Core.ConstMachComm.CommandStates.NULL; /// /// Tipo Comando da enum Core /// [Column("CommandType")] public Core.ConstMachComm.LogCommandTypes CommandType { get; set; } = Core.ConstMachComm.LogCommandTypes.NULL; /// /// Descrizione /// [Column("Description")] public string Description { get; set; } = ""; /// /// New OP State /// [Column("NewOpState")] public int NewOpState { get; set; } = 0; #endif #endregion Public Properties } }