Create DataModels
This commit is contained in:
parent
530197cd5c
commit
ca3570c197
@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.8.34511.84
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBar", "SushiBar\SushiBar.csproj", "{68873614-5B4D-4753-B03B-F28E73E17951}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SushiBarView", "SushiBarView\SushiBarView.csproj", "{68873614-5B4D-4753-B03B-F28E73E17951}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBarDataModels", "SushiBarDataModels\SushiBarDataModels.csproj", "{4A5A85B2-9B70-4493-B550-0E29FE82E9FD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -15,6 +17,10 @@ Global
|
||||
{68873614-5B4D-4753-B03B-F28E73E17951}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{68873614-5B4D-4753-B03B-F28E73E17951}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{68873614-5B4D-4753-B03B-F28E73E17951}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4A5A85B2-9B70-4493-B550-0E29FE82E9FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4A5A85B2-9B70-4493-B550-0E29FE82E9FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4A5A85B2-9B70-4493-B550-0E29FE82E9FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4A5A85B2-9B70-4493-B550-0E29FE82E9FD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
7
SushiBarDataModels/IId.cs
Normal file
7
SushiBarDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace SushiBarDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
13
SushiBarDataModels/Models/ICheque.cs
Normal file
13
SushiBarDataModels/Models/ICheque.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface ICheque : IId
|
||||
{
|
||||
int? CustomerId { get; }
|
||||
|
||||
DateTime OrderDate { get; }
|
||||
|
||||
double TotalSum { get; }
|
||||
|
||||
int? PromotionId { get; }
|
||||
}
|
||||
}
|
13
SushiBarDataModels/Models/IChequeItem.cs
Normal file
13
SushiBarDataModels/Models/IChequeItem.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface IChequeItem : IId
|
||||
{
|
||||
int DishId { get; }
|
||||
|
||||
int ChequeId { get; }
|
||||
|
||||
int CookId { get; }
|
||||
|
||||
int Count { get; }
|
||||
}
|
||||
}
|
9
SushiBarDataModels/Models/ICook.cs
Normal file
9
SushiBarDataModels/Models/ICook.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface ICook : IId
|
||||
{
|
||||
string Fio { get; }
|
||||
|
||||
DateTime EmploymentDate { get; }
|
||||
}
|
||||
}
|
11
SushiBarDataModels/Models/ICustomer.cs
Normal file
11
SushiBarDataModels/Models/ICustomer.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface ICustomer : IId
|
||||
{
|
||||
string Fio { get; }
|
||||
|
||||
DateTime BirthdayDate { get; }
|
||||
|
||||
double SumOfAllOrders { get; }
|
||||
}
|
||||
}
|
9
SushiBarDataModels/Models/IDish.cs
Normal file
9
SushiBarDataModels/Models/IDish.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface IDish : IId
|
||||
{
|
||||
string DishName { get; }
|
||||
|
||||
string Category { get; }
|
||||
}
|
||||
}
|
11
SushiBarDataModels/Models/IDishIngredient.cs
Normal file
11
SushiBarDataModels/Models/IDishIngredient.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface IDishIngredient : IId
|
||||
{
|
||||
int DishId { get; }
|
||||
|
||||
int IngredientId { get; }
|
||||
|
||||
int Count { get; }
|
||||
}
|
||||
}
|
11
SushiBarDataModels/Models/IIngredient.cs
Normal file
11
SushiBarDataModels/Models/IIngredient.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface IIngredient : IId
|
||||
{
|
||||
string IngredientName { get; }
|
||||
|
||||
string Unit { get; }
|
||||
|
||||
double Cost { get; }
|
||||
}
|
||||
}
|
11
SushiBarDataModels/Models/IPromotion.cs
Normal file
11
SushiBarDataModels/Models/IPromotion.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace SushiBarDataModels.Models
|
||||
{
|
||||
public interface IPromotion : IId
|
||||
{
|
||||
string PromotionName { get; }
|
||||
|
||||
float Discount { get; }
|
||||
|
||||
double TriggeringSum { get; }
|
||||
}
|
||||
}
|
9
SushiBarDataModels/SushiBarDataModels.csproj
Normal file
9
SushiBarDataModels/SushiBarDataModels.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user