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

22 lines
514 B
C#

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