In the list of transaction objects, I am trying to group BatchNo and then sum the amounts.
public class Extract {
At this point, I go into the code, looking at the locals window to find out what my result set should check against the file that I imported for this object.
The last batch in the file has 3 entries, 100 pieces each, each of which can be collapsed into a transaction list object. However, drilling into the result sGroup finds the same batch to have 100 sums (should be 300). What did I mess up in this query?
Note that I saved this as a string, since we are filled with zeros to the left of the 8-character field. For export reasons, I decided to store as a string. Although this can (and probably will) be changed, it does not answer my question: how to make this request aggregate the sum into sets using BatchNo?
c # linq-to-objects
Mohgeroth
source share