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(); }
protected internal Relationship(NodeReference targetNode, object data) { this.data = data; otherNode = targetNode; if (targetNode == null) throw new ArgumentNullException("targetNode"); Direction = RelationshipDirection.Automatic; }
public RelationshipInstance( RelationshipReference reference, NodeReference startNodeReference, NodeReference endNodeReference, string typeKey) { this.reference = reference; this.startNodeReference = startNodeReference; this.endNodeReference = endNodeReference; this.typeKey = typeKey; }
protected internal Relationship(NodeReference targetNode, object data) { this.data = data; otherNode = targetNode; if (targetNode == null) { throw new ArgumentNullException("targetNode"); } Direction = RelationshipDirection.Automatic; }
public Node(TNode data, long id, IGraphClient client) { this.Data = data; Reference = new NodeReference <TNode>(id, client); }
public void DeleteIndexEntries(string indexName, NodeReference relationshipReference) { throw new InvalidOperationException(NotValidForBolt); }
public void ReIndex(NodeReference node, IEnumerable <IndexEntry> indexEntries) { throw new InvalidOperationException(NotValidForBolt); }
public RelationshipReference CreateRelationship <TSourceNode, TRelationship>(NodeReference <TSourceNode> sourceNodeReference, TRelationship relationship) where TRelationship : Relationship, IRelationshipAllowingSourceNode <TSourceNode> { throw new InvalidOperationException(NotValidForBolt); }
public void Delete(NodeReference reference, DeleteMode mode) { throw new InvalidOperationException(NotValidForBolt); }
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); }
public void Update <TNode>(NodeReference <TNode> nodeReference, TNode replacementData, IEnumerable <IndexEntry> indexEntries = null) { throw new InvalidOperationException(NotValidForBolt); }
public Node <TNode> Get <TNode>(NodeReference <TNode> reference) { throw new InvalidOperationException(NotValidForBolt); }
public Task <Node <TNode> > GetAsync <TNode>(NodeReference reference) { throw new InvalidOperationException(NotValidForBolt); }
protected Relationship(NodeReference targetNode) : this(targetNode, null) { }
protected static int CountEdges(NodeReference<AssociativyNode> nodeReference) { return nodeReference.BothE(WellKnownConstants.RelationshipTypeKey).GremlinCount(); }