43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
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 PatientProcedure
|
|
{
|
|
/// <summary>
|
|
/// Идентификатор
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Идентификатор пациента
|
|
/// </summary>
|
|
[Required]
|
|
public int PatientId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Сущность "Пациент"
|
|
/// </summary>
|
|
public virtual Patient Patient { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Идентификатор процедуры
|
|
/// </summary>
|
|
[Required]
|
|
public int ProcedureId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Сущность "Процедура"
|
|
/// </summary>
|
|
public virtual Procedure Procedure { get; set; } = new();
|
|
}
|
|
}
|