Updated navdata to take table headings as opposed to index values from database

This commit is contained in:
Luke Else 2022-02-17 20:21:50 +00:00
parent 8ac4a3d693
commit 0252f115c6

View File

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