using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace VirtualTask.Models { public class Tecnici { [Display(Name = "Azienda")] public string? tccodazi { get; set; } [Display(Name = "Codice"), Required(ErrorMessage = "Inserire codice tecnico")] [StringLength(15)] public string? tccodice { get; set; } [Display(Name = "Descrizione"), Required(ErrorMessage = "Inserire descrizione")] [StringLength(40)] public string? tcdescri { get; set;} [Display(Name = "Telefono")] [StringLength(18)] public string? tctelef1 { get; set;} [Display(Name = "Utente"), Required(ErrorMessage = "Inserire Utente")] [StringLength(20)] public string? tcuser { get; set;} [Display(Name = "Password")] [StringLength(20)] public string? tcpwd { get; set;} [Display(Name = "Costo orario")] [Column(TypeName = "decimal(18, 4)")] public decimal? tccoor { get; set;} [Display(Name = "Costo notturno")] [Column(TypeName = "decimal(18, 4)")] public decimal? tccono { get; set;} [Display(Name = "Costo straordinario")] [Column(TypeName = "decimal(18, 4)")] public decimal? tccost { get; set;} [Display(Name = "Costo festivo")] [Column(TypeName = "decimal(18, 4)")] public decimal? tccofe { get; set;} public DateTime? tcdatobs { get; set; } } }