CourseWork_Borschevskaya_A..../Hospital/HospitalDatabaseImplement/Models/RecipeMedicine.cs

17 lines
453 B
C#

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();
}
}