예제 #1
0
        public static FinalContinuationBuilder <TOuterQuery> AddSteps <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, IEnumerable <Step> steps)
            where TOuterQuery : GremlinQueryBase, IGremlinQueryBase
        {
            foreach (var step in steps)
            {
                builder = builder.AddStep(step);
            }

            return(builder);
        }
예제 #2
0
        public static FinalContinuationBuilder <TOuterQuery> AddSteps <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, Traversal traversal)
            where TOuterQuery : GremlinQueryBase, IGremlinQueryBase
        {
            for (var i = 0; i < traversal.Count; i++)
            {
                builder = builder.AddStep(traversal[i]);
            }

            return(builder);
        }
예제 #3
0
 public static FinalContinuationBuilder <TOuterQuery> WithNewProjection <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, Projection newProjection)
     where TOuterQuery : GremlinQueryBase, IGremlinQueryBase => builder.WithNewProjection(static (_, newProjection) => newProjection, newProjection);