Coursach/Course/DatabaseImplement/Models/DetailProduct.cs
2024-04-21 20:36:07 +04:00

18 lines
407 B
C#

using System.ComponentModel.DataAnnotations;
namespace DatabaseImplement.Models
{
public class DetailProduct
{
public int Id { get; set; }
[Required]
public int DetailId { get; set; }
[Required]
public int ProductId { get; set; }
[Required]
public int Count { get; set; }
public virtual Detail Detail { get; set; } = new();
public virtual Product Product { get; set; } = new();
}
}