This is a two part question
I am getting this error when i try to create a new node
Cannot implicitly convert type'Neo4jClient.NodeReference' to 'Neo4jClient.GraphClient'
I have 3 classes here The first connects to the GraphDB server and return the client variable for later use in other classes
public GraphClient GetConnection()
{
var client = new GraphClient(new Uri("http://localhost:7474/db/data"));
client.Connect();
return client;
}
Then there is the New_Node class that looks like this
class New_Node
{
public GraphClient Node { get; set; }
}
Then there is the Graph Operations class that has the CreateNode Method
public GraphClient CreateNode()
{
Graph_Connection connection = new Graph_Connection();
var NewNode = connection.GetConnection();
var Created_Node = NewNode.Create(new New_Node());
return Created_Node;
}
how do I set the property of the Node on another line of code instead of creating them with the node, I want to make my app more dynamic, where as this way seems very hard coded
var refA = client.Create(new Person() { Name = "Person A" });
In Java one can do this
Node user1 = this.graphDb.createNode();
user1.setProperty("name", "Mike");