Заполнение библиотеки

This commit is contained in:
Николай 2023-01-28 13:14:30 +04:00
parent 3b18db1e8d
commit 2c830ba995
6 changed files with 52 additions and 7 deletions

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
}
}