I am trying use AggregationType.Sum for in source code schema for my web service but its not summing the the totals as i wanted to do. It only sends the first records Amount rather than finding the all the records with that condition match and total them up. Can anyone direct me to documentation of implementing this?
var esq = new EntitySchemaQuery(UserConnection.EntitySchemaManager, "UsrExample");
var totalSum = esq.AddColumn("UsrTotal");
totalSum .SummaryType = AggregationType.Sum; // Set aggregation to sum
There is good description here how to write such queries. When reading pay attention to "Adding columns to query" section there. You can not only use aggregation in queries but also can use aggregation in filters