diff --git a/Models/NavdataModel.cs b/Models/NavdataModel.cs index c439101..5092df4 100644 --- a/Models/NavdataModel.cs +++ b/Models/NavdataModel.cs @@ -54,11 +54,11 @@ namespace EFB.Models while (reader.Read()) { - int id = reader.GetInt32(0); - string name = reader.GetString(1); - string type = reader.GetString(2); - string latitude = reader.GetString(4); - string longitude = reader.GetString(5); + int id = reader.GetInt32("id"); + string name = reader.GetString("name"); + string type = reader.GetString("type"); + string latitude = reader.GetString("latitude"); + string longitude = reader.GetString("longitude"); if (type == "VOR" || type == "NDB") {