+DataModels

This commit is contained in:
Алексей Тихоненков 2024-05-19 02:49:15 +04:00
parent f76b431756
commit 73dce91123
9 changed files with 89 additions and 0 deletions

View File

@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34728.123
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageCompanyView", "StorageCompanyView\StorageCompanyView.csproj", "{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageCompanyDataModels", "StorageCompanyDataModels\StorageCompanyDataModels.csproj", "{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.Build.0 = Release|Any CPU
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -0,0 +1,15 @@
namespace StorageCompanyDataModels.Enums
{
public enum ProductType
{
Неизвестен = -1,
Одежда = 0,
Обувь = 1,
Техника = 2,
Гигиена = 3
}
}

View File

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

View File

@ -0,0 +1,9 @@
namespace StorageCompanyDataModels.Models
{
public interface IClientModel : IId
{
string ClientFIO { get; }
string Email { get; }
string Password { get; }
}
}

View File

@ -0,0 +1,16 @@
using StorageCompanyDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StorageCompanyDataModels.Models
{
public interface IProductModel : IId
{
string ProductName { get; }
int ProductNum { get; }
ProductType ProductType { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace StorageCompanyDataModels.Models
{
public interface IProviderModel : IId
{
string ProviderFIO { get; }
string Email { get; }
string Password { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace StorageCompanyDataModels.Models
{
public interface ISaleModel : IId
{
int ClientId { get; set; }
int ProductId { get; set; }
int SaleNum { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace StorageCompanyDataModels.Models
{
public interface ISupplyModel : IId
{
int ProviderId { get; set; }
int ProductId { get; set; }
int SupplyNum { get; set; }
}
}

View File

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