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; // // This is here so CodeMaid doesn't reorganize this document // namespace MP.MONO.Data.DbModels { /// /// Tabella Macchine /// [Table("Machine")] public class MachineModel { #region Public Properties /// /// UID /// [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int MachineId { get; set; } /// /// Modello /// [MaxLength(250)] public string Model { get; set; } = ""; /// /// Nome /// [MaxLength(250)] public string Name { get; set; } = ""; /// /// Codice di riferimento cliente /// [MaxLength(50)] public string Code { get; set; } = ""; /// /// Descrizione macchina /// [MaxLength(250)] public string Description { get; set; } = ""; /// /// Codice seriale macchina /// [MaxLength(250)] public string Serial { get; set; } = ""; /// /// Anno di costruzione /// public int BuildYear { get; set; } = DateTime.Today.Year; #endregion Public Properties } }