question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DocumentClient Linq to SQL

See original GitHub issue

I’m struggling to create a query… I want to use Linq extension methods (e.g. .Where(), .Select()) but it seems this API was removed. However documentation seems to not acknowledge this in a straightforward way, nor give an indication as to the plan…

If I look at docs for the v2 API it says it is deprecated. v3 is in preview and obviously incomplete. Where does that leave me?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jfosheecommented, Mar 4, 2019

Visiting https://docs.microsoft.com/en-us/previous-versions/azure/dn850285(v=azure.100) (linked to from Cosmos .NET Samples) I read the banner:

We’re no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.

So, “deprecated” was an imprecise word on my part. The impression is that v2 is not a good choice for new development. Meanwhile v3 is in progress, and it is not clear what its state is. (As you probably know the release notes are empty).

Thanks for providing the reference to the project page; that is cool. That is the first reference I’ve seen to that.

I would ask not that your team “code faster”, but “communicate better”.

0reactions
j82wcommented, Mar 7, 2019

V3 will get linq support. It’s listed in the notes of the GA Project. We are working on getting full query support with integration into the handler pipeline first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DocumentQueryable.CreateDocumentQuery Method
The DocumentDB LINQ provider compiles LINQ to SQL statements. Refer to https://azure.microsoft.com/documentation/articles/documentdb-sql-query ...
Read more >
Extract sql query from LINQ expressions
Is it possible to extract sql statements from LINQ queries ? Say, I have this LINQ expression. ... After this statement 'results' is...
Read more >
DocumentClient.CreateDocumentQuery Method
This method creates a query for documents under a collection in an Azure Cosmos DB database using a SQL statement with parameterized values....
Read more >
DocumentDB SQL - Linq to SQL Translation
String Functions − Supports translation from .NET's Concat, Contains, EndsWith, IndexOf, Count, ToLower, TrimStart, Replace, Reverse, TrimEnd, StartsWith, ...
Read more >
LinqPad CosmosDb Data Context Driver Update - Part 1
A while back I created a CosmosDb data context driver for LinqPad. ... not support a query that is a mixture of raw...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found