Лена. добавила словари для связей многие ко многим в проекте контрактов в BindingModel

This commit is contained in:
ekallin 2024-04-17 21:56:41 +04:00
parent 59f17e0eef
commit f1834eb8c8
4 changed files with 10 additions and 4 deletions

View File

@ -7,10 +7,12 @@ using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class MedicamentBindingModel : IMedicament
public class MedicamentBindingModel : IMedicamentModel
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Comment { get; set; } = string.Empty;
public Dictionary<int, (ISymptomModel, int)> MedicamentSymptom { get; set; } = new();
public Dictionary<int, (IProcedureModel, int)> MedicamentProcedure { get; set; } = new();
}
}

View File

@ -7,10 +7,12 @@ using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class ProcedureBindingModel : IProcedure
public class ProcedureBindingModel : IProcedureModel
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Comment { get; set; } = string.Empty;
public Dictionary<int, (IRecieptModel, int)> ProcedureReciept { get; set; } = new();
}
}

View File

@ -7,10 +7,12 @@ using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class RecieptBindingModel : IReciept
public class RecieptBindingModel : IRecieptModel
{
public int Id { get; set; }
public int CountProcedures { get; set; }
public string Comment { get; set; } = string.Empty;
public Dictionary<int, (ICourseModel, int)> RecieptCourse { get; set; } = new();
}
}

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class SuretorBindingModel : ISuretor
public class SuretorBindingModel : ISuretorModel
{
public int Id { get; set; }
public string FIO { get; set; } = string.Empty;