Skip to content

Commit 016a9e5

Browse files
authored
Merge pull request #206123 from seesharprun/patch-1
Cosmos DB | Fix LINQ sample in How-To for SQL API + .NET
2 parents 1c2fb5e + c8af66f commit 016a9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/sql/how-to-dotnet-query-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Alternatively, use the [QueryDefinition](/dotnet/api/microsoft.azure.cosmos.quer
6565

6666
In this example, an [``IQueryable``<>](/dotnet/api/system.linq.iqueryable) object is used to construct a [Language Integrated Query (LINQ)](/dotnet/csharp/programming-guide/concepts/linq/). The results are then iterated over using a feed iterator.
6767

68-
:::code language="csharp" source="~/azure-cosmos-dotnet-v3/300-query-items/Program.cs" id="query_items_linq" :::
68+
:::code language="csharp" source="~/azure-cosmos-dotnet-v3/300-query-items/Program.cs" id="query_items_queryable" :::
6969

7070
The [Container.GetItemLinqQueryable<>](/dotnet/api/microsoft.azure.cosmos.container.getitemlinqqueryable) method constructs an ``IQueryable`` to build the LINQ query. Then the ``ToFeedIterator<>`` method is used to convert the LINQ query expression into a [``FeedIterator<>``](/dotnet/api/microsoft.azure.cosmos.feediterator-1).
7171

0 commit comments

Comments
 (0)