Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5451

.NET: Improve outer joins in LINQ

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • platforms

    Description

      Currently outer joins are supported in a convoluted way, via a regular join with DefaultIfEmpty() call:

      var res = persons.Join(roles.DefaultIfEmpty(),
      person => person.Value.RoleId, role => role.Key,...)
      

      This is not consistent with LINQ to objects, Entity Framework and other things out there, and unexpected for the users.

      Instead we should support GroupJoin properly, see https://stackoverflow.com/questions/584820/how-do-you-perform-a-left-outer-join-using-linq-extension-methods

      Attachments

        Activity

          People

            Unassigned Unassigned
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: