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

23 lines
565 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.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace ComputerShopDatabaseImplement.Models
{
public class RequestOrder
{
public int Id { get; set; }
[Required]
public int RequestId { get; set; }
[Required]
public int OrderId { get; set; }
//!!!МБ ТУТ КАК-ТО ПО-ДРУГОМУ
public virtual Request Request { get; set; } = new();
public virtual Order Order { get; set; } = new();
}
}