Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Write Operations

Mark Tranter edited this page Sep 24, 2013 · 1 revision

Create/Update/Deleate operations are also available via ICypherSession

Create Node:

var session = Fluently.Configure("http://localhost:7474/db/data/").CreateSessionFactory().Create();
var newNode = session .CreateNode(new {name = "mark", job = ".Net Developer"}); 

Update Node:

var session = Fluently.Configure("http://localhost:7474/db/data/").CreateSessionFactory().Create();
dynamic node1 = session.Get(1); 
node1.name = "mtranter";
node1.job = "Neo4j Developer";
session.Save(node1);

Delete Node:

var session = Fluently.Configure("http://localhost:7474/db/data/").CreateSessionFactory().Create();
var node1 = session.Get(1); 
session.Delete(node1);
Clone this wiki locally