Переименовал классы моделей, начал делать слой контрактов
This commit is contained in:
parent
c096206b55
commit
27d772da25
13
ComputerShopContracts/BindingModels/ShipmentBindingModel.cs
Normal file
13
ComputerShopContracts/BindingModels/ShipmentBindingModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using ComputerShopDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerShopContracts.BindingModels
|
||||
{
|
||||
public class ShipmentBindingModel : IShipmentModel
|
||||
{
|
||||
}
|
||||
}
|
@ -10,8 +10,4 @@
|
||||
<ProjectReference Include="..\ComputerShopDataModels\ComputerShopDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerShopDataModels.Models
|
||||
{
|
||||
public interface IOrder : IId
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
//ID пользователя, который создал заказ
|
||||
int UserId { get; }
|
||||
@ -15,7 +15,7 @@ namespace ComputerShopDataModels.Models
|
||||
/// <summary>
|
||||
/// Заявки в заказе (может не быть)
|
||||
/// </summary>
|
||||
Dictionary<int, IRequest>? OrderRequests { get; }
|
||||
Dictionary<int, IRequestModel>? OrderRequests { get; }
|
||||
|
||||
//!!!УДАЛИТЬ
|
||||
//ID заявки (может быть пустым)
|
||||
@ -28,7 +28,7 @@ namespace ComputerShopDataModels.Models
|
||||
/// <summary>
|
||||
/// Партии товаров в заказе (может не быть)
|
||||
/// </summary>
|
||||
Dictionary<int, IShipment>? OrderShipments { get; }
|
||||
Dictionary<int, IShipmentModel>? OrderShipments { get; }
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@ namespace ComputerShopDataModels.Models
|
||||
/// <summary>
|
||||
/// Заявка
|
||||
/// </summary>
|
||||
public interface IRequest : IId
|
||||
public interface IRequestModel : IId
|
||||
{
|
||||
//ID пользователя, создавшего заявку
|
||||
int UserId { get; }
|
@ -9,7 +9,7 @@ namespace ComputerShopDataModels.Models
|
||||
/// <summary>
|
||||
/// Поставка товара
|
||||
/// </summary>
|
||||
public interface IShipment : IId
|
||||
public interface IShipmentModel : IId
|
||||
{
|
||||
//ID пользователя, создавшего поставку
|
||||
int UserId { get; }
|
Loading…
Reference in New Issue
Block a user