using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace HospitalDatabaseImplement.Models { public class RecipeMedicine { public int Id { get; set; } [Required] public int RecipeId { get; set; } [Required] public int MedicineId { get; set; } public virtual Recipe Recipe { get; set; } = new(); public virtual Medicine Medicine { get; set; } = new(); } }