Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-653

Query.Or should return { } if any subquery is { }

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8
    • Affects Version/s: 1.7
    • Component/s: None
    • Labels:

      [Robert Stam edited the summary 2013-01-02]

      See attached test (TestMethod2)

      int count = (from e in collection.AsQueryable<Entity>()
      where true || e.Name == "Name_22"
      select e).Count();

      returns 1 record, 100 expected

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            joe.enzminger Joe Enzminger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: