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

Allow dynamically created Expression<Func<>> to be used in a Mongo Linq query

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      var filter = FilterBuilder.BuildExpressionFilter<BetPurchase>()

      var query = _storage.AsQueryable()
      .Where(p => p.Selections.AsQueryable().Where(filter).Any());

      This won't work because AsQueryable is not supported.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            alex687 Alexandar Aramov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: