26 lines
658 B
C#
26 lines
658 B
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ComputerShopDatabaseImplement.Models
|
||
{
|
||
/// <summary>
|
||
/// Класс-связь партии товаров и заказа
|
||
/// </summary>
|
||
public class ShipmentOrder
|
||
{
|
||
public int Id { get; set; }
|
||
[Required]
|
||
public int ShipmentId { get; set; }
|
||
[Required]
|
||
public int OrderId { get; set; }
|
||
|
||
//!!!МБ ТУТ КАК-ТО ПО-ДРУГОМУ СДЕЛАТЬ
|
||
public virtual Shipment Shipment { get; set; } = new();
|
||
public virtual Order Order { get; set; } = new();
|
||
}
|
||
}
|