Inheritance: IGremlinQuery, IAttachedReference
Beispiel #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();
 }
        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;
 }
Beispiel #4
0
        protected internal Relationship(NodeReference targetNode, object data)
        {
            this.data = data;
            otherNode = targetNode;

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

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