Inheritance: 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;
        }
 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();
 }