Using dc = New Context(ConnectionString)
Dim data = From d In dc.Routes Where routeId = routeId Select d.PlaceName, New GeoCoordinate(d.Latitude, d.Longitude)
Return data.ToList
End Using
Private Function getDbLocations(roundId As Integer) As Dictionary(Of String, GeoCoordinate)
Try it like this.
Using dc = New Context(ConnectionString)
Dim data = From d In dc.Routes Where routeId = routeId Select d.PlaceName, LatLong = New GeoCoordinate(d.Latitude, d.Longitude)
Return data.ToList
End Using