Inheritance: IGremlinQuery, IAttachedReference
        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 RelationshipInstance(
     RelationshipReference reference,
     NodeReference startNodeReference,
     NodeReference endNodeReference,
     string typeKey)
 {
     this.reference          = reference;
     this.startNodeReference = startNodeReference;
     this.endNodeReference   = endNodeReference;
     this.typeKey            = typeKey;
 }
Example #4
0
 public void DeleteIndexEntries(string indexName, RelationshipReference relationshipReference)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
Example #5
0
 public void ReIndex(RelationshipReference relationship, IEnumerable <IndexEntry> indexEntries)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
Example #6
0
 public void DeleteRelationship(RelationshipReference reference)
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
Example #7
0
 public void Update <TRelationshipData>(RelationshipReference <TRelationshipData> relationshipReference, Action <TRelationshipData> updateCallback) where TRelationshipData : class, new()
 {
     throw new InvalidOperationException(NotValidForBolt);
 }
Example #8
0
 public Task <RelationshipInstance <TData> > GetAsync <TData>(RelationshipReference reference) where TData : class, new()
 {
     throw new InvalidOperationException(NotValidForBolt);
 }