CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopDataBaseImplement/Models/OrderProduct.cs
Илья Федотов 979625ebae Беда...
2024-05-31 16:05:43 +04:00

29 lines
656 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicsShopDataBaseImplement.Models
{
public class OrderProduct
{
public int Id { get; set; }
[Required]
public int OrderID { get; set; }
[Required]
public int ProductID { get; set; }
[Required]
public int Count { get; set; }
public virtual Order _order { get; set; } = new();
public virtual Product _product { get; set; } = new();
}
}