Лена. добавила словари для связей многие ко многим в проекте контрактов в BindingModel
This commit is contained in:
parent
59f17e0eef
commit
f1834eb8c8
@ -7,10 +7,12 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.BindingModels
|
namespace PolyclinicContracts.BindingModels
|
||||||
{
|
{
|
||||||
public class MedicamentBindingModel : IMedicament
|
public class MedicamentBindingModel : IMedicamentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
public string Comment { 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,10 +7,12 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.BindingModels
|
namespace PolyclinicContracts.BindingModels
|
||||||
{
|
{
|
||||||
public class ProcedureBindingModel : IProcedure
|
public class ProcedureBindingModel : IProcedureModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
public string Comment { get; set; } = string.Empty;
|
public string Comment { get; set; } = string.Empty;
|
||||||
|
public Dictionary<int, (IRecieptModel, int)> ProcedureReciept { get; set; } = new();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,10 +7,12 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.BindingModels
|
namespace PolyclinicContracts.BindingModels
|
||||||
{
|
{
|
||||||
public class RecieptBindingModel : IReciept
|
public class RecieptBindingModel : IRecieptModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int CountProcedures { get; set; }
|
public int CountProcedures { get; set; }
|
||||||
public string Comment { get; set; } = string.Empty;
|
public string Comment { get; set; } = string.Empty;
|
||||||
|
public Dictionary<int, (ICourseModel, int)> RecieptCourse { get; set; } = new();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.BindingModels
|
namespace PolyclinicContracts.BindingModels
|
||||||
{
|
{
|
||||||
public class SuretorBindingModel : ISuretor
|
public class SuretorBindingModel : ISuretorModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string FIO { get; set; } = string.Empty;
|
public string FIO { get; set; } = string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user