Поправил название класса контекста бд

This commit is contained in:
Никита Потапов 2024-04-28 16:29:57 +04:00
parent a48c0c75a5
commit 03bb104df1
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ namespace PolyclinicDatabaseImplement.Models
}
}
public static Course Create(SecuritySystemDatabase context, CourseBindingModel model)
public static Course Create(PolyclinicDatabase context, CourseBindingModel model)
{
return new Course()
{
@ -70,7 +70,7 @@ namespace PolyclinicDatabaseImplement.Models
CourseDiagnoses = CourseDiagnoses
};
public void UpdateDiagnoses(SecuritySystemDatabase context, CourseBindingModel model)
public void UpdateDiagnoses(PolyclinicDatabase context, CourseBindingModel model)
{
//var courseDiagnoses = context.CourseDiagnoses.Where(rec => rec.CourseId == model.Id).ToList();
//if (courseDiagnoses != null && courseDiagnoses.Count > 0)

View File

@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models;
namespace SecuritySystemDatabaseImplement
{
public class SecuritySystemDatabase : DbContext
public class PolyclinicDatabase : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{