Make Query Syntax Async method!

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.4.4
    • Component/s: LINQ
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      There are no async method in Linq Query Syntax when you want to retrieve an object.

      For example:

      var peter = await (from x in collection.AsQueryable()
      where x.Name == "Peter"
      select x).FirstOrDefaultAsync();

      This will create an error. FirstOrDefaultAsync() does not exist. However, FirstOrDefault() does exit.

      But the async method exists in Linq Method Syntax.

      I also wrote it in Stackoverflow here: https://stackoverflow.com/questions/47169729/is-mongodb-c-sharp-driver-linq-query-syntax-missing-async-method?noredirect=1#comment81290069_47169729

      It would be so awesome if we could get this feature

            Assignee:
            Robert Stam
            Reporter:
            Danny Chu [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: