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

Don't work sub array query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Linq
    • Labels:
      None

      Description

      This query success compile and run. But, result is not right!

      Example:

                  var cursor = from uc in usersCollection.AsQueryable()
                               join cc in candlesCollection.AsQueryable() on uc.Pairs.First(p=>p.Name == "CAD_HKD").Id equals cc.UserPairId into joined
                               select new { uc.FirstName, uc.LastName, Count =  joined.Count()};
      

      This code return 50 records, but every propery "Count" = 0! It is not right, because data exist in the collection!

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            boniface Vorobjev Valery
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: