phronCare/Domain/Entities/ECustomer.cs
Leandro Hernan Rojas 0177366fc9
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m4s
Update Customers Update Create and List
2025-04-12 18:51:25 -03:00

38 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Domain.Entities
{
public class ECustomer
{
public int Id { get; set; }
[Required(ErrorMessage = "Debe ingresar un nombre.")]
public string? Name { get; set; }
[Required(ErrorMessage = "Debe ingresar una razon social.")]
public string? BusinessName { get; set; }
[Required(ErrorMessage = "Debe seleccionar un tipo de cuenta.")]
public int? AccounttypesId { get; set; }
[Required(ErrorMessage = "Debe seleccionar un condicion.")]
public int? TaxConditionId { get; set; }
public bool HasCreditAccount { get; set; }
public decimal CreditLimit { get; set; }
public bool Active { get; set; }
public string? ExternalCode { get; set; }
public virtual EAccountType? Accounttypes { get; set; }
public virtual ICollection<ECustomerAddress> PhSCustomerAddresses { get; set; } = new List<ECustomerAddress>();
public virtual ICollection<ECustomerDocument> PhSCustomerDocuments { get; set; } = new List<ECustomerDocument>();
}
}