using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; // // This is here so CodeMaid doesn't reorganize this document // namespace MP.MONO.Data.DbModels { /// /// Tabella valore stato contatori (espressi in minuti centesimali...) /// [Table("Counter")] public class CounterModel { /// /// Codice Univoco /// [Key, DatabaseGenerated(DatabaseGeneratedOption.None), MaxLength(250)] public string CCode { get; set; } = ""; /// /// Counter Code Alias /// [MaxLength(250)] public string CodAlias { get; set; } = ""; /// /// Descrizione /// [MaxLength(500)] public string Description { get; set; } = ""; /// /// Valore attuale espresso in ore /// public double ActualVal { get; set; } = 0; /// /// DataOra ultimo reset valore contatore (se effettuato) altrimenti minimo datetime /// public DateTime LastReset { get; set; } = DateTime.MinValue; } }