C# 如何以编程方式查询ravendb中属性为空的文档
在ravendb studio中,我可以做: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
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();