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 /// /// Codice Allarme /// [Column("AlarmCode")] public string AlarmCode { get; set; } = ""; /// /// Data Evento /// [Column("AlarmDtEvent")] public DateTime AlarmDatetime { get; set; } = DateTime.Now; /// /// 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; } = ""; [Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int LogDbId { get; set; } /// /// New OP State /// [Column("NewOpState")] public int NewOpState { get; set; } = 0; /// /// Stato da enum Core /// [Column("ResultType")] public Core.ConstMachComm.ResultTypes ResultType { get; set; } = Core.ConstMachComm.ResultTypes.NULL; /// /// Indirizzo VAR /// [Column("VarAddress")] public string VarAddress { get; set; } = ""; /// /// Valore VAR /// [Column("VarValue")] public string VarValue { get; set; } = ""; #endregion Public Properties } }