First commit

This commit is contained in:
2024-11-21 16:53:30 +01:00
commit 5cbd7b9d6e
46 changed files with 1506 additions and 0 deletions

23
Receiver/Product.cs Normal file
View File

@@ -0,0 +1,23 @@
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!;
}