54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace SHERPA.Data.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
[Table("Clienti")]
|
|
public partial class CustomerModel
|
|
{
|
|
public CustomerModel()
|
|
{
|
|
FattureNav = new HashSet<AccoDocModel>();
|
|
}
|
|
|
|
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;
|
|
/// <summary>
|
|
/// ID esterno
|
|
/// </summary>
|
|
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<AccoDocModel> FattureNav { get; set; }
|
|
}
|
|
}
|