From 03bb104df11231633ceb9db7c405c5da733fb6df Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Sun, 28 Apr 2024 16:29:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=82?= =?UTF-8?q?=D0=B5=D0=BA=D1=81=D1=82=D0=B0=20=D0=B1=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs | 4 ++-- Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs b/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs index 31732c2..1dd6339 100644 --- a/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs +++ b/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs @@ -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) diff --git a/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs b/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs index 5628550..7e6f892 100644 --- a/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs +++ b/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs @@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models; namespace SecuritySystemDatabaseImplement { - public class SecuritySystemDatabase : DbContext + public class PolyclinicDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {