Net.Graph.Neo4JD.Node.Create C# (CSharp) Méthode

Create() public méthode

public Create ( ) : Net.Graph.Neo4JD.BaseEntity
Résultat Net.Graph.Neo4JD.BaseEntity
        public override BaseEntity Create()
        {
            return _nodeRepo.CreateNode(this);
        }

Usage Example

        public void DeleteNode()
        {
            Node nodeToDelete = new Node();
            nodeToDelete.AddProperty("FirstName", "Delete").AddProperty("LastName", "Node");
            nodeToDelete.Create();
            int id = nodeToDelete.Id;
            Console.WriteLine(nodeToDelete.GetLocation().ToString());

            nodeToDelete.Delete();

            Node accessDeletedNode = Node.Get(id);
            Assert.AreEqual(0, accessDeletedNode.Id);
        }
All Usage Examples Of Net.Graph.Neo4JD.Node::Create