Поменял тип связи курса и рецепа, добавил поле recipeid в модель курса

This commit is contained in:
Никита Потапов 2024-04-27 13:23:51 +04:00
parent 49c23cc933
commit a16836ba24
3 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ namespace PolyclinicContracts.BindingModels
public int DaysCount { get; set; } public int DaysCount { get; set; }
public int PillsPerDay { get; set; } public int PillsPerDay { get; set; }
public string Comment { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty;
public int RecipeId { get; set; }
public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new(); public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new();
public Dictionary<int, IRecipeModel> CourseRecipes { get; set; } = new();
public int Id { get; set; } public int Id { get; set; }
} }
} }

View File

@ -11,8 +11,8 @@ namespace PolyclinicContracts.ViewModels
public int PillsPerDay { get; set; } public int PillsPerDay { get; set; }
[DisplayName("Комментарий")] [DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty;
public int RecipeId { get; set; }
public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new(); public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new();
public Dictionary<int, IRecipeModel> CourseRecipes { get; set; } = new();
public int Id { get; set; } public int Id { get; set; }
} }
} }

View File

@ -5,7 +5,7 @@
int DaysCount { get; } int DaysCount { get; }
int PillsPerDay { get; } int PillsPerDay { get; }
string Comment { get; } string Comment { get; }
int RecipeId { get; }
Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; } Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; }
Dictionary<int, IRecipeModel> CourseRecipes { get; }
} }
} }