Esempio n. 1
0
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > AnyDirection <TVertex, TEdge>(
     this IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > source)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("ShortestPath_AnyDirection", typeof(TVertex), typeof(TEdge)),
                    source.Expression)) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > OutBound <TVertex, TEdge>(
     this ITraversalQueryable <TraversalData <TVertex, TEdge> > source)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_OutBound", typeof(TVertex), typeof(TEdge)),
                    source.Expression)) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > Traversal <TVertex, TEdge>(
     this IQueryable source, string startVertex)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_Constant", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(startVertex))) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > Options <TVertex, TEdge>(
     this ITraversalQueryable <TraversalData <TVertex, TEdge> > source, object options)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_Options", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(options))) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }
Esempio n. 5
0
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > Edge <TVertex, TEdge>(
     this IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > source, string collectionName)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("ShortestPath_Edge", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(collectionName)
                    )) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > Depth <TVertex, TEdge>(
     this ITraversalQueryable <TraversalData <TVertex, TEdge> > source, int min, int max)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_Depth", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(min),
                    Expression.Constant(max))) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > Graph <TVertex, TEdge>(
     this ITraversalQueryable <TraversalData <TVertex, TEdge> > source, string graphName)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_Graph", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(graphName)
                    )) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }
Esempio n. 8
0
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > ShortestPath <TVertex, TEdge>(
     this IQueryable source, string startVertex, string targetVertex)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("ShortestPath_Constant", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(startVertex),
                    Expression.Constant(targetVertex)
                    )) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }
Esempio n. 9
0
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > ShortestPath <TVertex, TEdge>(
     this IQueryable source, Expression <Func <string> > startVertex, Expression <Func <string> > targetVertex)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("ShortestPath_Selector", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Quote(startVertex),
                    Expression.Quote(targetVertex)
                    )) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }
 public static ITraversalQueryable <TraversalData <TVertex, TEdge> > Edge <TVertex, TEdge>(
     this ITraversalQueryable <TraversalData <TVertex, TEdge> > source, string collectionName,
     EdgeDirection direction)
 {
     return(source.Provider.CreateQuery <TraversalData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("Traversal_Edge_Direction", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(collectionName),
                    Expression.Constant(direction)
                    )) as ITraversalQueryable <TraversalData <TVertex, TEdge> >);
 }