2024-04-21 19:17:40 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-05-01 22:21:11 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-04-21 19:17:40 +04:00
|
|
|
|
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]
|
2024-04-21 19:17:40 +04:00
|
|
|
|
public int OrderId { get; set; }
|
2024-05-01 22:21:11 +04:00
|
|
|
|
|
|
|
|
|
[Required]
|
2024-04-21 19:17:40 +04:00
|
|
|
|
public int ProductId { get; set; }
|
|
|
|
|
|
2024-05-01 22:21:11 +04:00
|
|
|
|
[Required]
|
2024-04-21 19:17:40 +04:00
|
|
|
|
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();
|
2024-04-21 19:17:40 +04:00
|
|
|
|
}
|
|
|
|
|
}
|