public void Add(Entity entity, ICollection <PropertyAggregatorUpdate> updates) { Count++; foreach (var u in updates) { _aggregators[u.Config.Index].Add(u.Values); } if (NoGroupResults) { return; } AggregationResult groupResult; var key = entity.GetKey(_keyIndex); if (!_groupResults.TryGetValue(key, out groupResult)) { groupResult = new AggregationResult(_metadata, _config, _keyIndex + 1); _groupResults.Add(key, groupResult); } groupResult.Add(entity, updates); }
public void Add(Entity entity, ICollection<PropertyAggregatorUpdate> updates) { Count++; foreach (var u in updates) { _aggregators[u.Config.Index].Add(u.Values); } if (NoGroupResults) return; AggregationResult groupResult; var key = entity.GetKey(_keyIndex); if (!_groupResults.TryGetValue(key, out groupResult)) { groupResult = new AggregationResult(_metadata, _config, _keyIndex + 1); _groupResults.Add(key, groupResult); } groupResult.Add(entity, updates); }
public AggregationRoot(EntitySet set, AggregationConfig config, EntityMetadata metadata) : base(set, config) { _result = new AggregationResult(metadata, config, 0); }