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