25 lines
592 B
C#
25 lines
592 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();
|
|||
|
}
|
|||
|
}
|