graphClient.Cypher .Match("(invitee:User)") .Where((User invitee) => invitee.Id == 123) .Create("invitee-[:INVITED]->(invited:User {newUser})") .WithParam("newUser", newUser) .ExecuteWithoutResults();
Basically, your object model should just be POCOs that represent your data structure (like the User class in the examples).
All of the Node<T>, Relationship<T>, RelationshipInstance<T> stuff will go away.
--
Tatham Oddie
--
You received this message because you are subscribed to the Google Groups "Neo4jClient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
neo4jclient...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If the Relationship class et al is on the way out, what's the situation on using paths? And how about relationship properties? Would you have to manually map that into your desired POCO? Or is/will there be a better way?
With this happening, it will clean up my code a lot, I'm just curious to know how it will go.
--
I don’t really know how to handle paths nicely yet.
I’ll have to come up with a solution eventually.
For now, Node<T> and Relationship<T> will still be needed there.
Any ideas as to usage syntax and types are welcome. J
--
Tatham Oddie