From 990129b09ffe005406b131d868a2478fb2dfc8ce Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Thu, 23 Mar 2023 23:31:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BlacksmithWorkshopDatabaseImplement/Models/Order.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs index 057a64c..b99055e 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs @@ -4,6 +4,7 @@ using BlacksmithWorkshopDataModels.Enums; using BlacksmithWorkshopDataModels.Models; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -15,14 +16,19 @@ namespace BlacksmithWorkshopDatabaseImplement.Models { public int Id { get; private set; } + [Required] public int ManufactureId { get; private set; } + [Required] public int Count { get; private set; } + [Required] public double Sum { get; private set; } + [Required] public OrderStatus Status { get; private set; } = OrderStatus.Неизвестен; + [Required] public DateTime DateCreate { get; private set; } = DateTime.Now; public DateTime? DateImplement { get; private set; }