Files
2022-02-11 08:43:45 +01:00

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