Document and/or modify the behavior of Query.EQ when value is C# null

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.4
    • Affects Version/s: 1.3.1
    • Component/s: None
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      See: http://groups.google.com/group/mongodb-user/browse_thread/thread/8a8131a6af1daf60

      As a result of BsonDocument functional construction ignoring C# nulls (just like XDocument), the result of the following query builder expression can be surprising:

      Query.EQ("x", null) => {}

      This either needs to be documented more thoroughly, or if we choose to disallow this then Query.EQ should throw an ArgumentNullException.

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: