All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m24s
30 lines
803 B
C#
30 lines
803 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Domain.Entities
|
|
{
|
|
public class EProduct
|
|
{
|
|
public int Id { get; set; }
|
|
public int? BusinessunitsId { get; set; }
|
|
[Required(ErrorMessage = "Debe ingresar un nombre.")]
|
|
public string? Name { get; set; }
|
|
[Required(ErrorMessage = "Debe ingresar una descripcion.")]
|
|
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; }
|
|
}
|
|
|
|
}
|