Skip to content

Commit

Permalink
Samples: Adds warning about System.Text.Json and LINQ (#3251)
Browse files Browse the repository at this point in the history
  • Loading branch information
j82w committed Jun 3, 2022
1 parent cee34ce commit 67da0bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ private static async Task RunDemo()
Console.WriteLine($"Created Completed activity with id {createCompletedActivity.Resource.Id} that cost {createCompletedActivity.RequestCharge}");

// Execute queries materializing responses using System.Text.Json
// NOTE: GetItemLinqQueryable does not support System.Text.Json attributes. LINQ will not translate the name based on the attributes
// which can result in no or invalid results coming back. https://github.com/Azure/azure-cosmos-dotnet-v3/issues/3250
using FeedIterator<ToDoActivity> iterator = container.GetItemQueryIterator<ToDoActivity>("select * from c where c.status = 'Completed'");
while (iterator.HasMoreResults)
{
Expand Down

0 comments on commit 67da0bf

Please sign in to comment.