PIAPS_CW/DatabaseImplement/Models/SellProducts.cs
2024-06-24 15:06:42 +04:00

23 lines
582 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseImplement.Models
{
public class SellProducts
{
public Guid Id { get; set; }
[Required]
public Guid SellId { get; set; }
[Required]
public Guid ProductId { get; set; }
[Required]
public int Count { get; set; }
public virtual Sell Sell { get; set; } = new();
public virtual Product Product { get; set; } = new();
}
}