Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.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
C# 如何以编程方式查询ravendb中属性为空的文档_C#_Ravendb - Fatal编程技术网

C# 如何以编程方式查询ravendb中属性为空的文档

C# 如何以编程方式查询ravendb中属性为空的文档,c#,ravendb,C#,Ravendb,在ravendb studio中,我可以做: property: [[NULL_VALUE]] 如何使用IDocumentQuery 下面的尝试不起作用 documentSession .Advanced .DocumentQuery<Doc, Index>() .WhereIn("property", new[] {"[[NULL_VALUE]]", "some value"}) .ToList(); documentSession .高级 .DocumentQuery

在ravendb studio中,我可以做:

property: [[NULL_VALUE]]
如何使用
IDocumentQuery

下面的尝试不起作用

documentSession
 .Advanced
 .DocumentQuery<Doc, Index>()
 .WhereIn("property", new[] {"[[NULL_VALUE]]", "some value"})
 .ToList();
documentSession
.高级
.DocumentQuery()
。其中(“property”,new[]{“[[NULL_VALUE]]”,“some VALUE”})
.ToList();

要查询
[[NULL\u VALUE]]
[[EMPTY\u VALUE]]]

documentSession
 .Advanced
 .DocumentQuery<Doc, Index>()
 .WhereIn("property", new string[] {null, ""})
 .ToList();
documentSession
.高级
.DocumentQuery()
。其中(“属性”,新字符串[]{null,“})
.ToList();