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

Linq Provider Projections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      Your Linq provider doesn't support projections as it always returns an IQueryable instance rather than a projected IQueryable instance.

      In other words, the following breaks:

      var myList = from u in mongoCollection.AsQueryable select new User

      { Name = u["Name"] }

      ;

      The projection from a queryable list of documents into a queryable list of (in this case ) users is the problem.

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            sam Sam Corder
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: