Create DataModels

This commit is contained in:
ShabOl 2024-05-15 15:07:09 +04:00
parent 530197cd5c
commit ca3570c197
16 changed files with 111 additions and 1 deletions

View File

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

View File

@ -0,0 +1,7 @@
namespace SushiBarDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,13 @@
namespace SushiBarDataModels.Models
{
public interface ICheque : IId
{
int? CustomerId { get; }
DateTime OrderDate { get; }
double TotalSum { get; }
int? PromotionId { get; }
}
}

View File

@ -0,0 +1,13 @@
namespace SushiBarDataModels.Models
{
public interface IChequeItem : IId
{
int DishId { get; }
int ChequeId { get; }
int CookId { get; }
int Count { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace SushiBarDataModels.Models
{
public interface ICook : IId
{
string Fio { get; }
DateTime EmploymentDate { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace SushiBarDataModels.Models
{
public interface ICustomer : IId
{
string Fio { get; }
DateTime BirthdayDate { get; }
double SumOfAllOrders { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace SushiBarDataModels.Models
{
public interface IDish : IId
{
string DishName { get; }
string Category { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace SushiBarDataModels.Models
{
public interface IDishIngredient : IId
{
int DishId { get; }
int IngredientId { get; }
int Count { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace SushiBarDataModels.Models
{
public interface IIngredient : IId
{
string IngredientName { get; }
string Unit { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace SushiBarDataModels.Models
{
public interface IPromotion : IId
{
string PromotionName { get; }
float Discount { get; }
double TriggeringSum { get; }
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>