PIbd-22_CourseWork_Hospital.../Polyclinic/HospitalDatabaseImplement/Models/SymptomRecipe.cs

16 lines
420 B
C#
Raw Normal View History

2024-05-01 23:49:06 +04:00
using System.ComponentModel.DataAnnotations;
namespace HospitalDatabaseImplement.Models
{
public class SymptomRecipe
{
public int Id { get; set; }
[Required]
public int SymptomId { get; set; }
[Required]
public int RecipeId { get; set; }
public virtual Symptom Symptom { get; set; } = new();
public virtual Recipe Recipe { get; set; } = new();
}
}