Фикс создания сущности доктор

This commit is contained in:
Никита Потапов 2024-05-08 09:34:51 +04:00
parent db2b7ef24e
commit 1907b56478

View File

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