теперь точно создание моднлей данных
This commit is contained in:
parent
b597e77637
commit
512a605510
25
AbstractSushiBarDataModels/AbstractSushiBarDataModels.sln
Normal file
25
AbstractSushiBarDataModels/AbstractSushiBarDataModels.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.7.34031.279
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbstractSushiBarDataModels", "AbstractSushiBarDataModels\AbstractSushiBarDataModels.csproj", "{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {73292010-42D8-482B-90B6-CD302C7EA849}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -0,0 +1,11 @@
|
||||
namespace AbstractSushiBarDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace AbstractSushiBarDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace AbstractSushiBarDataModels.Models
|
||||
{
|
||||
internal interface IComponentModel : IId
|
||||
{
|
||||
string ComponentName { get; }
|
||||
double Cost { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using AbstractSushiBarDataModels.Enums;
|
||||
|
||||
namespace AbstractSushiBarDataModels.Models
|
||||
{
|
||||
internal interface IOrderModel : IId
|
||||
{
|
||||
int ProductId { get; }
|
||||
int Count { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace AbstractSushiBarDataModels.Models
|
||||
{
|
||||
internal interface IProductModel : IId
|
||||
{
|
||||
string ProductName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user