コード例 #1
0
 private Accumulator <FrameNode, IEnumerable <Guid> > GetAccumulatorForSecondary(FramingPlan plan, SecondaryFrameNode node, AccumulatorFactory accumulator)
 {
     return(accumulator.GetOrCreateAccumulator(plan, node.Getter,
                                               node.Parent,
                                               node.Current,
                                               node.UsingParameters.ParameterNames));
 }
コード例 #2
0
 private Accumulator<FrameNode, IEnumerable<Guid>> GetAccumulator(Relation relation,Query query)
 {
     var factory = new AccumulatorFactory();
     var plan = new FramingPlan(relation.ParentElement);
     var acc = factory.GetOrCreateAccumulator(plan,
                                 (keys, parPairs) =>
                                     query.GetMultipleChildResourceQuery(relation.ParentElement.Name,parPairs.Select(k=>k.Key).ToArray())(keys,parPairs.Select(k=>k.Value).ToArray()),
                               relation.ParentElement, relation.ChildElement, new ParameterNames());
     return acc;
 }
コード例 #3
0
        private Accumulator <FrameNode, IEnumerable <Guid> > GetAccumulator(Relation relation, Query query)
        {
            var factory = new AccumulatorFactory();
            var plan    = new FramingPlan(relation.ParentElement);
            var acc     = factory.GetOrCreateAccumulator(plan,
                                                         (keys, parPairs) =>
                                                         query.GetMultipleChildResourceQuery(relation.ParentElement.Name, parPairs.Select(k => k.Key).ToArray())(keys, parPairs.Select(k => k.Value).ToArray()),
                                                         relation.ParentElement, relation.ChildElement, new ParameterNames());

            return(acc);
        }
コード例 #4
0
 private Accumulator<FrameNode, IEnumerable<Guid>> GetAccumulatorForSecondary(FramingPlan plan, SecondaryFrameNode node, AccumulatorFactory accumulator)
 {
     return accumulator.GetOrCreateAccumulator(plan,node.Getter,
                                               node.Parent, 
                                               node.Current,
                                               node.UsingParameters.ParameterNames);
 }