Files
ITS.Cled.Ripasso/Receiver/Product.cs
2024-11-21 16:53:30 +01:00

23 lines
516 B
C#

using System.ComponentModel.DataAnnotations;
namespace Receiver;
public class Product
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(50)]
public string Name { get; set; } = default!;
[Required]
[StringLength(10)]
public string Code { get; set; } = default!;
[Required]
[Range(0, double.MaxValue)]
public decimal Price { get; set; }
public string Action { get; set; } = default!;
}