PIbd-21_MasenkinMS_Coursewo.../Hospital/HospitalDatabaseImplement/Models/ProcedureMedicine.cs

43 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-04-25 02:00:30 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalDatabaseImplement.Models
{
/// <summary>
/// Класс связи для сущностей "Процедура" и "Лекарство"
/// </summary>
public class ProcedureMedicine
{
/// <summary>
/// Идентификатор
/// </summary>
public int Id { get; set; }
/// <summary>
/// Идентификатор процедуры
/// </summary>
[Required]
public int ProcedureId { get; set; }
/// <summary>
/// Сущность "Процедура"
/// </summary>
public virtual Procedure Procedure { get; set; } = new();
/// <summary>
/// Идентификатор лекарства
/// </summary>
[Required]
public int MedicineId { get; set; }
/// <summary>
/// Сущность "Лекарство"
/// </summary>
public virtual Medicine Medicine { get; set; } = new();
}
}