First commit
This commit is contained in:
23
Receiver/Product.cs
Normal file
23
Receiver/Product.cs
Normal 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!;
|
||||
}
|
||||
Reference in New Issue
Block a user