Files
Samuele Locatelli 2de0c7e215 Init display allarmi
2021-10-28 15:33:21 +02:00

57 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace GWMS.Data.DatabaseModels
{
/// <summary>
/// Tabella dati Plant (log storico)
/// </summary>
[Table("AlarmLog")]
public class AlarmLogModel
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int AlarmLogId { get; set; }
/// <summary>
/// Data registazione
/// </summary>
public DateTime DtEvent { get; set; } = DateTime.Now;
/// <summary>
/// Impianto di riferimento
/// </summary>
public int PlantId { get; set; }
/// <summary>
/// Indirizzo area memoria allarme
/// </summary>
[MaxLength(50)]
public string MemAddress { get; set; } = "";
/// <summary>
/// Indice nel banco allarmi
/// </summary>
public int Index { get; set; } = 0;
/// <summary>
/// Valore banco allarmi
/// </summary>
public uint Status { get; set; } = 0;
/// <summary>
/// Valore decodificato (opzionale)
/// </summary>
public string ValDecoded { get; set; } = "";
[ForeignKey("PlantId")]
public virtual PlantDetailModel Plant { get; set; }
}
}