Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public AggregationRoot(EntitySet set, AggregationConfig config, EntityMetadata metadata)
     : base(set, config)
 {
     _result = new AggregationResult(metadata, config, 0);
 }
Пример #4
0
 public AggregationRoot(EntitySet set, AggregationConfig config, EntityMetadata metadata)
     : base(set, config)
 {
     _result = new AggregationResult(metadata, config, 0);
 }