コード例 #1
0
 /// <summary>
 /// Expands the graph expression with the specified property and query.
 /// The new graph expression will bind a given context if and only if both the old expression and the addition bind
 /// </summary>
 /// <param name="property">property along which to expand</param>
 /// <param name="query">queryable graph required at the end of the property</param>
 /// <returns>a queryable graph</returns>
 public IQueryableGraph Require(Resource property, IQueryableGraph query)
 {
     return(new QueryableGraph(GraphProvider, GraphExpression.Join(property, query.GraphExpression)));
 }
コード例 #2
0
 /// <summary>
 /// Returns the union of two queries, the graph expressions are left unaltered.
 /// </summary>
 /// <param name="query"></param>
 /// <returns>a queryable graph</returns>
 public IQueryableGraph Union(IQueryableGraph query)
 {
     return(new QueryableGraph(GraphProvider, GraphExpression.Union(query.GraphExpression)));
 }
コード例 #3
0
 /// <summary>
 /// Expands the graph expression with the specified property and terminal query, then return the terminal query
 /// The new graph expression will bind a given context if and only if both the old expression and the addition bind
 /// </summary>
 /// <param name="property">property along which to expand</param>
 /// <param name="query">queryable graph required at the end of the property</param>
 /// <returns>a queryable graph</returns>
 public IQueryableGraph Select(Resource property, IQueryableGraph query)
 {
     return(new QueryableGraph(GraphProvider, GraphExpression.Select(property, query.GraphExpression)));
 }
コード例 #4
0
 public SearchedGraphBuiltContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IEnumerable<int> nodeIds, IQueryableGraph<int> idGraph)
     : base(graphDescriptor, settings, idGraph)
 {
     NodeIds = nodeIds;
 }
コード例 #5
0
 protected MindEventContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IQueryableGraph<int> idGraph)
 {
     GraphDescriptor = graphDescriptor;
     Settings = settings;
     IdGraph = idGraph;
 }
コード例 #6
0
 public AllAssociationsGraphBuiltContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IQueryableGraph<int> idGraph)
     : base(graphDescriptor, settings, idGraph)
 {
 }