Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure cosmosdb 使用cosmosdb linq提供程序,可以将where子句链接到嵌套的SelectMany之外吗?_Azure Cosmosdb - Fatal编程技术网

Azure cosmosdb 使用cosmosdb linq提供程序,可以将where子句链接到嵌套的SelectMany之外吗?

Azure cosmosdb 使用cosmosdb linq提供程序,可以将where子句链接到嵌套的SelectMany之外吗?,azure-cosmosdb,Azure Cosmosdb,我正在尝试编写一个linq文档查询,如下所示: var query = _documentClient.CreateDocumentQuery<T>(uri, feedOptions) .SelectMany(queryExpression).Where(expression) .AsDocumentQuery(); 当我查看实际的查询字符串时,它看起来像这样: customer => customer.Orders

我正在尝试编写一个linq文档查询,如下所示:

var query = _documentClient.CreateDocumentQuery<T>(uri, feedOptions)
            .SelectMany(queryExpression).Where(expression)
            .AsDocumentQuery();
当我查看实际的查询字符串时,它看起来像这样:

customer => customer.Orders
            .Where(c => c.OrderId == orderId) &&
                        c.ORderType == OrderType.Customer)
            .Select(d => customer);
SELECT VALUE root FROM root JOIN c IN root["Orders"] WHERE (((c["OrderId"] = "635debcf-d77f-430e-90f2-ca51afc6b685") AND (c["OrderType"] = 0)) AND ( c["Age"] > 35) 
我想要的东西看起来像:

SELECT VALUE root FROM root JOIN c IN root["Orders"] WHERE (((c["OrderId"] = "635debcf-d77f-430e-90f2-ca51afc6b685") AND (c["OrderType"] = 0)) AND ( root["Age"] > 35) 

因此,我的问题是:是否有一种方法,使用linq提供程序,将一个WHERE链接到nestest SELECTMANY语句之外,该语句根据父文档根进行过滤?答案是Microsoft的客户端已损坏: