phronCare/Domain/Entities/EProduct.cs

30 lines
803 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace Domain.Entities
2025-04-16 09:30:00 -03:00
{
public class EProduct
{
public int Id { get; set; }
public int? BusinessunitsId { get; set; }
[Required(ErrorMessage = "Debe ingresar un nombre.")]
2025-04-16 09:30:00 -03:00
public string? Name { get; set; }
[Required(ErrorMessage = "Debe ingresar una descripcion.")]
2025-04-16 09:30:00 -03:00
public string Description { get; set; } = null!;
public int? Categoryid { get; set; }
public string? Origin { get; set; }
public decimal Baseprice { get; set; }
public string Currency { get; set; } = null!;
public bool Isactive { get; set; }
public virtual EBusinessUnit? Businessunits { get; set; }
public virtual EProductCategory? Category { get; set; }
}
}