From 1907b56478a75d22e9a434a83311cb78fbdeefe2 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 8 May 2024 09:34:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=81=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=81=D1=83=D1=89=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=82=D0=BE=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Medical/MedicalPostgresqlDatabase/Storages/DoctorsStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Medical/MedicalPostgresqlDatabase/Storages/DoctorsStorage.cs b/Medical/MedicalPostgresqlDatabase/Storages/DoctorsStorage.cs index eb996b0..0d68d07 100644 --- a/Medical/MedicalPostgresqlDatabase/Storages/DoctorsStorage.cs +++ b/Medical/MedicalPostgresqlDatabase/Storages/DoctorsStorage.cs @@ -17,7 +17,7 @@ namespace MedicalPostgresqlDatabase.Storages { return new Doctor { - Id = Convert.ToInt32(reader.GetOrdinal("doctor_id")), + Id = Convert.ToInt32(reader.GetOrdinal(PRIMARY_KEY_COLUMN_NAME)), Name = Convert.ToString(reader.GetOrdinal("name")), Surname = Convert.ToString(reader.GetOrdinal("surname")), Patronymic = Convert.ToString(reader.GetOrdinal("patronymic")),