상속: IGremlinQuery, IAttachedReference
예제 #1
0
 public IHttpActionResult UpdateSchool(Institute a)
 {
     a.pass = password(a.pass);
     g.Connect();
     NodeReference<Institute> node = new NodeReference<Institute>(long.Parse(a.self), g);
     g.Update<Institute>(node, a);
     return Ok();
 }
예제 #2
0
        protected internal Relationship(NodeReference targetNode, object data)
        {
            this.data = data;
            otherNode = targetNode;

            if (targetNode == null)
                throw new ArgumentNullException("targetNode");

            Direction = RelationshipDirection.Automatic;
        }
예제 #3
0
 public RelationshipInstance(
     RelationshipReference reference,
     NodeReference startNodeReference,
     NodeReference endNodeReference,
     string typeKey)
 {
     this.reference = reference;
     this.startNodeReference = startNodeReference;
     this.endNodeReference = endNodeReference;
     this.typeKey = typeKey;
 }
예제 #4
0
        protected internal Relationship(NodeReference targetNode, object data)
        {
            this.data = data;
            otherNode = targetNode;

            if (targetNode == null)
            {
                throw new ArgumentNullException("targetNode");
            }

            Direction = RelationshipDirection.Automatic;
        }
예제 #5
0
 public Node(TNode data, long id, IGraphClient client)
 {
     this.Data = data;
     Reference = new NodeReference <TNode>(id, client);
 }
예제 #6
0
 public void DeleteIndexEntries(string indexName, NodeReference relationshipReference)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #7
0
 public void ReIndex(NodeReference node, IEnumerable <IndexEntry> indexEntries)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #8
0
 public RelationshipReference CreateRelationship <TSourceNode, TRelationship>(NodeReference <TSourceNode> sourceNodeReference, TRelationship relationship) where TRelationship : Relationship, IRelationshipAllowingSourceNode <TSourceNode>
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #9
0
 public void Delete(NodeReference reference, DeleteMode mode)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #10
0
 public Node <TNode> Update <TNode>(NodeReference <TNode> nodeReference, Action <TNode> updateCallback, Func <TNode, IEnumerable <IndexEntry> > indexEntriesCallback = null, Action <IEnumerable <FieldChange> > changeCallback = null)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #11
0
 public void Update <TNode>(NodeReference <TNode> nodeReference, TNode replacementData, IEnumerable <IndexEntry> indexEntries = null)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #12
0
 public Node <TNode> Get <TNode>(NodeReference <TNode> reference)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #13
0
 public Task <Node <TNode> > GetAsync <TNode>(NodeReference reference)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
예제 #14
0
 protected Relationship(NodeReference targetNode)
     : this(targetNode, null)
 {
 }
예제 #15
0
 protected Relationship(NodeReference targetNode)
     : this(targetNode, null)
 {
 }
 protected static int CountEdges(NodeReference<AssociativyNode> nodeReference)
 {
     return nodeReference.BothE(WellKnownConstants.RelationshipTypeKey).GremlinCount();
 }