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

Don't work sub array query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Linq, LINQ3

    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

            Unassigned Unassigned
            boniface Vorobjev Valery
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: