Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.graphdb.Relationship relationship(long id) throws RelationshipNotFoundException
        private Relationship Relationship(long id)
        {
            try
            {
                using (Transaction tx = _graphDb.beginTx())
                {
                    Relationship relationship = _graphDb.getRelationshipById(id);

                    tx.Success();
                    return(relationship);
                }
            }
            catch (NotFoundException e)
            {
                throw new RelationshipNotFoundException(e);
            }
        }
Example #2
0
 public override Relationship GetRelationshipById(long id)
 {
     return(_database.getRelationshipById(id));
 }