示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.graphdb.Node getNode(org.neo4j.kernel.ha.HighlyAvailableGraphDatabase db, org.neo4j.graphdb.Label testLabel) throws org.neo4j.internal.kernel.api.exceptions.EntityNotFoundException
        private Node GetNode(HighlyAvailableGraphDatabase db, Label testLabel)
        {
            using (ResourceIterator <Node> nodes = Db.findNodes(testLabel))
            {
                return(nodes.First().orElseThrow(() => new EntityNotFoundException(EntityType.NODE, 0L)));
            }
        }