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

Don't work sub array query

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Linq, LINQ3
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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!

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

              Created:
              Updated:
              Resolved: