Skip to content

Commit 47c0b92

Browse files
Correcting LINQ Query
Correcting LINQ Query from a.Location to u.Location
1 parent f67f212 commit 47c0b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/geospatial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Here's an example of a LINQ query that finds all documents in the Azure Cosmos D
249249
**LINQ query for Distance**
250250

251251
foreach (UserProfile user in client.CreateDocumentQuery<UserProfile>(UriFactory.CreateDocumentCollectionUri("db", "profiles"))
252-
.Where(u => u.ProfileType == "Public" && a.Location.Distance(new Point(32.33, -4.66)) < 30000))
252+
.Where(u => u.ProfileType == "Public" && u.Location.Distance(new Point(32.33, -4.66)) < 30000))
253253
{
254254
Console.WriteLine("\t" + user);
255255
}

0 commit comments

Comments
 (0)