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")),