Raspaev N.I. BaseLabWork01 #1

Closed
Nikolay-Raspaev wants to merge 12 commits from BaseLabWork01 into main
6 changed files with 52 additions and 7 deletions
Showing only changes of commit 2c830ba995 - Show all commits

View File

@ -1,7 +0,0 @@
namespace FoodOrdersDataModels
{
public class Class1
{
}
}

View File

@ -0,0 +1,9 @@

namespace FoodOrdersDataModels.Models
{
public interface IComponentModel : IId
{
string ComponentName { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,8 @@

namespace FoodOrdersDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,14 @@
using FoodOrdersDataModels.Enums;
namespace FoodOrdersDataModels.Models
{
public interface IOrderModel : IId
{
int ProductId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,10 @@

namespace FoodOrdersDataModels.Models
{
public interface IProductModel : IId
{
string ProductName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace FoodOrdersDataModels.Enums
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}