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