CourseWork_Borschevskaya_A..../Hospital/HospitalDatabaseImplement/Models/RecipeTreatment.cs

21 lines
544 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalDatabaseImplement.Models
{
public class RecipeTreatment
{
public int Id { get; set; }
[Required]
public int RecipeId { get; set; }
[Required]
public int TreatmentId { get; set; }
public virtual Recipe Recipe { get; set; } = new();
public virtual Treatment Treatment { get; set; } = new();
}
}