From 68f790bcda0c1aaa14d575172bd08da4fbff18e9 Mon Sep 17 00:00:00 2001 From: aleksandr chegodaev Date: Mon, 29 Apr 2024 21:45:46 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=81?= =?UTF-8?q?=D0=B2=D0=BE=D1=8E=20=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=20=D1=81?= =?UTF-8?q?=D0=BB=D0=BE=D0=B6=D0=BD=D1=83=D1=8E=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarCenterDataModels/CarCenterDataModels.csproj | 2 +- CarCenterDataModels/HelperInterfaces/IId.cs | 7 +++++++ CarCenterDataModels/HelperInterfaces/IUser.cs | 14 ++++++++++++++ CarCenterDataModels/IAccountModel.cs | 10 ++++++++++ CarCenterDataModels/ICarModel.cs | 16 ++++++++++++++++ CarCenterDataModels/IImplementerModel.cs | 8 ++++++++ .../ProxyModels/ClientByCarModel.cs | 11 +++++++++++ 7 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 CarCenterDataModels/HelperInterfaces/IId.cs create mode 100644 CarCenterDataModels/HelperInterfaces/IUser.cs create mode 100644 CarCenterDataModels/IAccountModel.cs create mode 100644 CarCenterDataModels/ICarModel.cs create mode 100644 CarCenterDataModels/IImplementerModel.cs create mode 100644 CarCenterDataModels/ProxyModels/ClientByCarModel.cs diff --git a/CarCenterDataModels/CarCenterDataModels.csproj b/CarCenterDataModels/CarCenterDataModels.csproj index cfadb03..a1ed5b3 100644 --- a/CarCenterDataModels/CarCenterDataModels.csproj +++ b/CarCenterDataModels/CarCenterDataModels.csproj @@ -1,4 +1,4 @@ - + net7.0 diff --git a/CarCenterDataModels/HelperInterfaces/IId.cs b/CarCenterDataModels/HelperInterfaces/IId.cs new file mode 100644 index 0000000..b8be95f --- /dev/null +++ b/CarCenterDataModels/HelperInterfaces/IId.cs @@ -0,0 +1,7 @@ +namespace CarCenterDataModels.HelperInterfaces +{ + public interface IId + { + int Id { get; } + } +} diff --git a/CarCenterDataModels/HelperInterfaces/IUser.cs b/CarCenterDataModels/HelperInterfaces/IUser.cs new file mode 100644 index 0000000..26d8107 --- /dev/null +++ b/CarCenterDataModels/HelperInterfaces/IUser.cs @@ -0,0 +1,14 @@ +namespace CarCenterDataModels.HelperInterfaces +{ + public interface IUser : IId + { + string FirstName { get; } + string LastName { get; } + + string Login { get; } + + string Password { get; } + + string PhoneNumber { get; } + } +} diff --git a/CarCenterDataModels/IAccountModel.cs b/CarCenterDataModels/IAccountModel.cs new file mode 100644 index 0000000..bb4ccb8 --- /dev/null +++ b/CarCenterDataModels/IAccountModel.cs @@ -0,0 +1,10 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IAccountModel : IId + { + int ClientByCarId { get; } + double Price { get; } + } +} diff --git a/CarCenterDataModels/ICarModel.cs b/CarCenterDataModels/ICarModel.cs new file mode 100644 index 0000000..498e441 --- /dev/null +++ b/CarCenterDataModels/ICarModel.cs @@ -0,0 +1,16 @@ +using CarCenterDataModels.HelperInterfaces; +using CarCenterDataModels.ProxyModels; + +namespace CarCenterDataModels +{ + public interface ICarModel : IId + { + int ImplementerId { get; } + + string Name { get; } + + double Price { get; } + + Dictionary ClientsModel { get; } + } +} diff --git a/CarCenterDataModels/IImplementerModel.cs b/CarCenterDataModels/IImplementerModel.cs new file mode 100644 index 0000000..d678f7d --- /dev/null +++ b/CarCenterDataModels/IImplementerModel.cs @@ -0,0 +1,8 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IImplementerModel : IUser + { + } +} diff --git a/CarCenterDataModels/ProxyModels/ClientByCarModel.cs b/CarCenterDataModels/ProxyModels/ClientByCarModel.cs new file mode 100644 index 0000000..baabfaf --- /dev/null +++ b/CarCenterDataModels/ProxyModels/ClientByCarModel.cs @@ -0,0 +1,11 @@ +namespace CarCenterDataModels.ProxyModels +{ + public class ClientByCarModel + { + public virtual int Id { get; set; } + public virtual int ClientId { get; set; } + public virtual int CarId { get; set; } + + public virtual DateTime DateOfClient { get; set; } + } +}