PIbd_23_Kislitsa_E.D_Diner/Diner/DinerDataBaseImplement/Models/SnackComponent.cs
2024-05-12 15:13:03 +04:00

25 lines
650 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DinerDataBaseImplement.Models
{
[DataContract]
public class SnackComponent
{
public int Id { get; set; }
[Required]
public int SnackId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Snack Snack { get; set; } = new();
}
}