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