Пример #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> >);
 }
Пример #2
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> >);
 }
Пример #3
0
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > Options <TVertex, TEdge>(
     this IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > source, object options)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    ArangoQueryableExtensions.FindExtention("ShortestPath_Options", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(options)
                    )) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }
 public static IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > Graph <TVertex, TEdge>(this IShortestPathQueryable <ShortestPathData <TVertex, TEdge> > source, string graphName)
 {
     return(source.Provider.CreateQuery <ShortestPathData <TVertex, TEdge> >(
                Expression.Call(
                    QueryableExtensions.FindExtention("ShortestPath_Graph", typeof(TVertex), typeof(TEdge)),
                    source.Expression,
                    Expression.Constant(graphName)
                    )) as IShortestPathQueryable <ShortestPathData <TVertex, TEdge> >);
 }