PIbd-22_Chernyshev_Shabunov.../ComputerShopDatabaseImplement/Models/ShipmentOrder.cs

26 lines
658 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}