Major upgrade to Azure DocumentDB LINQ providerSolution ·
Early Septembre 2015, Microsoft has announced a major upgrade to the LINQ Provider of the .NET SDK of DocumentDb.
I know it does appear a bit confusing since when DocumentDb was released (a year ago now), it was said that it supported SQL. Well, it supported some SQL.
Now the surface area of SQL it supports has increased. In order for us to take advantage of this within a .NET application, the LINQ Provider must be upgraded to translate more operations into that SQL.
You see, DocumentDb’s SDK works the same way than Entity Fx or LINQ to SQL or LINQ to XML in that respect: your c# LINQ query gets translated into an expression tree by the compiler, then the LINQ provider (an implementation of IQueryable) translates the expression tree into an SQL string (at runtime).
The SQL is what is sent to the DocumentDb service.
Today the LINQ provider allows string manipulation, array manipulation (e.g. concatenation), order by and some hierarchical manipulation too.
So download the latest NuGet package of DocumentDb client (i.e. 1.4.1) and try to expand your LINQ queries.