Support array.Contains(value) == false in LINQ queries

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5
    • Component/s: LINQ
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is no way to do a contains with the Mongo LINQ driver. This makes it very hard to do queries like the below:

      
      var list = (from p in collection.AsQueryable<MyBaseData>()
                      where p.Id != null &&
                                 ignoredIds.Contains(p.Id) == false &&
                                 p.Reference != "Baked Goods"    
                      select p).ToList();
      
      

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

                Created:
                Updated:
                Resolved: