Поменял тип связи курса и рецепа, добавил поле recipeid в модель курса
This commit is contained in:
parent
49c23cc933
commit
a16836ba24
@ -7,8 +7,8 @@ namespace PolyclinicContracts.BindingModels
|
||||
public int DaysCount { get; set; }
|
||||
public int PillsPerDay { get; set; }
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
public int RecipeId { get; set; }
|
||||
public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new();
|
||||
public Dictionary<int, IRecipeModel> CourseRecipes { get; set; } = new();
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -11,8 +11,8 @@ namespace PolyclinicContracts.ViewModels
|
||||
public int PillsPerDay { get; set; }
|
||||
[DisplayName("Комментарий")]
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
public int RecipeId { get; set; }
|
||||
public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new();
|
||||
public Dictionary<int, IRecipeModel> CourseRecipes { get; set; } = new();
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
int DaysCount { get; }
|
||||
int PillsPerDay { get; }
|
||||
string Comment { get; }
|
||||
int RecipeId { get; }
|
||||
Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; }
|
||||
Dictionary<int, IRecipeModel> CourseRecipes { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user