public Transportbeziehung FindByTbNr(long tbNr) { Contract.Requires(tbNr >= 0); RelationshipReference tbRef = new RelationshipReference(tbNr); RelationshipInstance<Transportbeziehung> tbRelShipInstance = gc.Get<Transportbeziehung>(tbRef); if (tbRelShipInstance == null) { return null; } Transportbeziehung tb = tbRelShipInstance.Data; tb.TbNr = tbNr; var result = gc.Cypher .Start("r", tbRef) .Match("(a)-[r]->(b)") .Return((a, b, r) => new { A = a.Node<Lokation>(), B = b.Node<Lokation>() }) .Results .Single(); tb.Start = FindByLokNr(result.A.Reference.Id); tb.Ziel = FindByLokNr(result.B.Reference.Id); return tb; }
public RelationshipInstance( RelationshipReference reference, NodeReference startNodeReference, NodeReference endNodeReference, string typeKey) { this.reference = reference; this.startNodeReference = startNodeReference; this.endNodeReference = endNodeReference; this.typeKey = typeKey; }
public void DeleteIndexEntries(string indexName, RelationshipReference relationshipReference) { throw new InvalidOperationException(NotValidForBolt); }
public void ReIndex(RelationshipReference relationship, IEnumerable <IndexEntry> indexEntries) { throw new InvalidOperationException(NotValidForBolt); }
public void DeleteRelationship(RelationshipReference reference) { throw new InvalidOperationException(NotValidForBolt); }
public void Update <TRelationshipData>(RelationshipReference <TRelationshipData> relationshipReference, Action <TRelationshipData> updateCallback) where TRelationshipData : class, new() { throw new InvalidOperationException(NotValidForBolt); }
public Task <RelationshipInstance <TData> > GetAsync <TData>(RelationshipReference reference) where TData : class, new() { throw new InvalidOperationException(NotValidForBolt); }