コード例 #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);
            }
        }
コード例 #2
0
ファイル: DatabaseRule.cs プロジェクト: Neo4Net/Neo4Net
 public override Relationship GetRelationshipById(long id)
 {
     return(_database.getRelationshipById(id));
 }