Создание моделей

This commit is contained in:
dasha 2023-03-28 14:51:57 +04:00
parent 650f7b7efb
commit c53a1e3b6a
7 changed files with 67 additions and 0 deletions

View File

@ -5,6 +5,8 @@ VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonView", "BeautySaloonView\BeautySaloonView.csproj", "{4098AFA1-025D-4259-A4FD-4546A533DE60}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonDataModels", "BeautySaloonDataModels\BeautySaloonDataModels.csproj", "{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{4098AFA1-025D-4259-A4FD-4546A533DE60}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.Build.0 = Release|Any CPU
{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

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

View File

@ -0,0 +1,12 @@
namespace BeautySaloonDataModels.Models
{
public interface IClientModel
{
int Id { get; }
string Name { get; }
string Surname { get; }
string Patronymic { get; }
string Phone { get; }
List<IOrderModel> Orders { get; }
}
}

View File

@ -0,0 +1,12 @@
namespace BeautySaloonDataModels.Models
{
public interface IEmployeeModel
{
int Id { get; }
string Name { get; }
string Surname { get; }
string Patronymic { get; }
string Phone { get; }
int PositionId { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace BeautySaloonDataModels.Models
{
public interface IOrderModel
{
int Id { get; }
DateTime Date { get; }
double Sum { get; }
int ClientId { get; }
Dictionary<IServiceModel, (IEmployeeModel, DateTime)> OrderServices { get; }
}
}

View File

@ -0,0 +1,8 @@
namespace BeautySaloonDataModels.Models
{
public interface IPositionModel
{
int Id { get; }
string Name { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace BeautySaloonDataModels.Models
{
public interface IServiceModel
{
int Id { get; }
string Name { get; }
double Price { get; }
}
}