using System.ComponentModel.DataAnnotations; namespace HotelDataBaseImplement.Models { public class MealPlanMember { public int Id { get; set; } [Required] public int MemberId { get; set; } [Required] public int MealPlanId { get; set; } public virtual MealPlan MealPlan { get; set; } public virtual Member Member { get; set; } } }