add Assembly, Component, Product data models
This commit is contained in:
parent
9d25188cf5
commit
1f59b3f931
@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerShopDataModels.Enums
|
||||
namespace ComputerShopDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
|
33
ComputerShopDataModels/Models/IAssemblyModel.cs
Normal file
33
ComputerShopDataModels/Models/IAssemblyModel.cs
Normal file
@ -0,0 +1,33 @@
|
||||
namespace ComputerShopDataModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Сборка
|
||||
/// </summary>
|
||||
public interface IAssemblyModel : IId
|
||||
{
|
||||
/// <summary>
|
||||
/// Пользователь, который создал сборку
|
||||
/// </summary>
|
||||
int UserId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Название сборки
|
||||
/// </summary>
|
||||
string AssemblyName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Стоимость
|
||||
/// </summary>
|
||||
double Cost { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Категория
|
||||
/// </summary>
|
||||
string Category { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Список комплектующих
|
||||
/// </summary>
|
||||
Dictionary<int, (IComponentModel, int)> AssemblyComponents { get; }
|
||||
}
|
||||
}
|
23
ComputerShopDataModels/Models/IComponentModel.cs
Normal file
23
ComputerShopDataModels/Models/IComponentModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
namespace ComputerShopDataModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Комплектующая
|
||||
/// </summary>
|
||||
public interface IComponentModel : IId
|
||||
{
|
||||
/// <summary>
|
||||
/// Пользователь, который добавил комплектующую
|
||||
/// </summary>
|
||||
int UserId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Название комплектующей
|
||||
/// </summary>
|
||||
string ComponentName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Цена комплектующей
|
||||
/// </summary>
|
||||
double Cost { get; }
|
||||
}
|
||||
}
|
38
ComputerShopDataModels/Models/IProductModel.cs
Normal file
38
ComputerShopDataModels/Models/IProductModel.cs
Normal file
@ -0,0 +1,38 @@
|
||||
namespace ComputerShopDataModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Товар
|
||||
/// </summary>
|
||||
public interface IProductModel : IId
|
||||
{
|
||||
/// <summary>
|
||||
/// Пользователь, который добавил товар
|
||||
/// </summary>
|
||||
int UserId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Название товара
|
||||
/// </summary>
|
||||
string ProductName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Стоимость товара
|
||||
/// </summary>
|
||||
double Cost { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Гарантия
|
||||
/// </summary>
|
||||
int Warranty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Список комплектующих
|
||||
/// </summary>
|
||||
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Привязка товара к партии товаров
|
||||
/// </summary>
|
||||
int? ShipmentId { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user