Hi,
I hope this is the right forum to ask.
I have a PostalCode table with fields postalcode, latitude and longitude.
I also have a table Service with a FK to PostalCode.
I want to retrieve e.g. the TOP 10 Services that are closest to a given postalcode (GetServicesByPostalCode(string postalcode)).
I use a formula to calculate the distance between the 2 postalcodes, so the distance between 2 given postalcodes is not in the database.
How do I go about this using LLBLGen? I want to ORDER BY the calculated distance, but that depends on the search postalcode I provide, so I don't think I can use calculated fields, right?
Any ideas?
Thanks,
Jeffry