using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace SHERPA.Data.DbModels { // // This is here so CodeMaid doesn't reorganize this document // [Table("Clienti")] public partial class CustomerModel { public CustomerModel() { FattureNav = new HashSet(); } public int IdxCli { get; set; } = 0; public string? CodiceCliente { get; set; } = ""; public string? RagSoc { get; set; } = "RagSoc"; public string? PIva { get; set; } = "000000000"; public string? CFisc { get; set; } = "000000000000"; public string Pec { get; set; } = null!; public string CodUnivoco { get; set; } = null!; public string Via { get; set; } = null!; public string Localita { get; set; } = null!; public string Cap { get; set; } = null!; public string Provincia { get; set; } = null!; public string? Pagamento { get; set; } = ""; public string? Note { get; set; } = ""; public string? IdxGruppo { get; set; } = ""; public string? Valuta { get; set; } = ""; public bool? Attivo { get; set; } = true; /// /// ID esterno /// public string IdExt { get; set; } = null!; [NotMapped] public int IdxExtInt { get { int answ = 0; int.TryParse(IdExt, out answ); return answ; } } public virtual GruppiModel? IdxGruppoNavigation { get; set; } public virtual ICollection FattureNav { get; set; } } }