Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.server.rest.repr.RelationshipRepresentation getRelationship(long relationshipId) throws RelationshipNotFoundException
        public override RelationshipRepresentation GetRelationship(long relationshipId)
        {
            using (Transaction transaction = _graph.beginTx())
            {
                RelationshipRepresentation relationship = base.GetRelationship(relationshipId);
                transaction.Success();
                return(relationship);
            }
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.server.rest.repr.RelationshipRepresentation createRelationship(long startNodeId, long endNodeId, String type, java.util.Map<String, Object> properties) throws org.neo4j.server.rest.domain.StartNodeNotFoundException, org.neo4j.server.rest.domain.EndNodeNotFoundException, PropertyValueException
        public override RelationshipRepresentation CreateRelationship(long startNodeId, long endNodeId, string type, IDictionary <string, object> properties)
        {
            using (Transaction transaction = _graph.beginTx())
            {
                RelationshipRepresentation relationshipRepresentation = base.CreateRelationship(startNodeId, endNodeId, type, properties);
                transaction.Success();
                return(relationshipRepresentation);
            }
        }