77 lines
1.9 KiB
C#
77 lines
1.9 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Tabella dei LOG Macchina
|
|
/// </summary>
|
|
[Table("LogMachine")]
|
|
public class LogMachineModel
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// File CNC di riferimento
|
|
/// </summary>
|
|
[Column("CncFileName")]
|
|
public string CncFileName { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Descrizione
|
|
/// </summary>
|
|
[Column("Description")]
|
|
public string Description { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Data Evento
|
|
/// </summary>
|
|
[Column("DtEvent")]
|
|
public DateTime DtEvent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data Esportazione
|
|
/// </summary>
|
|
[Column("DtExported")]
|
|
public DateTime DtExported { get; set; }
|
|
|
|
/// <summary>
|
|
/// Tipo evento da enum Core
|
|
/// </summary>
|
|
[Column("EventType")]
|
|
public Core.EventType EventType { get; set; } = Core.EventType.ND;
|
|
|
|
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int LogDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// MachineId del BTL
|
|
/// </summary>
|
|
[Column("MachineId")]
|
|
public string MachineId { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Messaggio
|
|
/// </summary>
|
|
[Column("Message")]
|
|
public string Message { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Seriale
|
|
/// </summary>
|
|
[Column("SN")]
|
|
public int SN { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Valore Associato
|
|
/// </summary>
|
|
[Column("Value")]
|
|
public double Value { get; set; } = 0;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |