CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopDataBaseImplement/Models/OrderProduct.cs
Илья Федотов 1dd398772a Web
2024-05-27 14:57:41 +04:00

27 lines
618 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; }
public int OrderID { get; set; }
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();
}
}