--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/c4b0f80e-57b3-4137-9d3c-92b6a7677d1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oren Eini CEO / Hibernating Rhinos LTD
|
All of those should work.What does the _document_ looks like on your database? Not the class, the actual JSON?
On Wed, Apr 10, 2019 at 8:41 AM Alexander Klaus <alex....@gmail.com> wrote:
Given a persistent model--public class Entity{public string Number { get; set; }}When how I can query the collection of Entity where Number is NULL with using IRavenQueryable ?A straightforward attempts to query like below fail:Query<Entity>.Where(e => e.Number == null)orQuery<Entity>.Where(e => e.Number != null)No luck in Raven Studio on queryingfrom 'Entities' where Number != nullHowever, when I build an index on Entities, when having a field like below works:IsNumberNull = e.Number == nullIs there a dual standard on handling queries vs indexes?
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/c4b0f80e-57b3-4137-9d3c-92b6a7677d1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/826e209f-70bb-4b24-97cf-30f0dbe8110b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
A field being null and a field being absent are two different things.We have the exists method that you can use for detecting this.2 results for: from Entities where Number != null and exists(Number)1 result for: from Entities where Number = null2 results for: from Entities where Number = null or not exists(Number)1 result for: from Entities where true and not exists(Number)
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/826e209f-70bb-4b24-97cf-30f0dbe8110b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/72784077-f709-4690-ab92-0b392d68610a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.