сделал свою очень сложную работу
This commit is contained in:
parent
0281194bc2
commit
68f790bcda
@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
|
7
CarCenterDataModels/HelperInterfaces/IId.cs
Normal file
7
CarCenterDataModels/HelperInterfaces/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace CarCenterDataModels.HelperInterfaces
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
14
CarCenterDataModels/HelperInterfaces/IUser.cs
Normal file
14
CarCenterDataModels/HelperInterfaces/IUser.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
10
CarCenterDataModels/IAccountModel.cs
Normal file
10
CarCenterDataModels/IAccountModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
|
||||
namespace CarCenterDataModels
|
||||
{
|
||||
public interface IAccountModel : IId
|
||||
{
|
||||
int ClientByCarId { get; }
|
||||
double Price { get; }
|
||||
}
|
||||
}
|
16
CarCenterDataModels/ICarModel.cs
Normal file
16
CarCenterDataModels/ICarModel.cs
Normal file
@ -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<int, ClientByCarModel> ClientsModel { get; }
|
||||
}
|
||||
}
|
8
CarCenterDataModels/IImplementerModel.cs
Normal file
8
CarCenterDataModels/IImplementerModel.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
|
||||
namespace CarCenterDataModels
|
||||
{
|
||||
public interface IImplementerModel : IUser
|
||||
{
|
||||
}
|
||||
}
|
11
CarCenterDataModels/ProxyModels/ClientByCarModel.cs
Normal file
11
CarCenterDataModels/ProxyModels/ClientByCarModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user