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

Support linq projections to only pull back referenced fields.

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.4.2
    • None

    Description

      It should only pull back fields required for projection. In addition, it should support these forms
      1) simple projections: x.FirstName
      2) complex projections: x.FirstName + " " + x.LastName
      3) anonymous projections: new { Name = x.FirstName + " " + x.LastName
      4) class Projections: new PersonName(x.FirstName, x.LastName)

      { Age = x.BirthDate.ToAge() }

      );

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            53 Vote for this issue
            Watchers:
            39 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: