AccountingWarehouseProducts.../AccountingWarehouseProducts/AccountingWarehouseProductsDatabaseImplement/Models/OrderProduct.cs

28 lines
614 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2024-05-01 22:21:11 +04:00
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AccountingWarehouseProductsDatabaseImplement.Models
{
public class OrderProduct
{
public int Id { get; set; }
2024-05-01 22:21:11 +04:00
[Required]
public int OrderId { get; set; }
2024-05-01 22:21:11 +04:00
[Required]
public int ProductId { get; set; }
2024-05-01 22:21:11 +04:00
[Required]
public int Count { get; set; }
public virtual Product Product { get; set; } = new();
2024-05-01 22:21:11 +04:00
public virtual Order Order { get; set; } = new();
}
}