Net.Graph.Neo4JD.Node.SetLocation C# (CSharp) Method

SetLocation() private method

private SetLocation ( Uri location ) : void
location System.Uri
return void
        internal override void SetLocation(Uri location)
        {
            if (location.ToString().Contains("relationship"))
                throw new InvalidCastException(string.Format("Unable to cast Relationship to Node. The type is a Relationship, Location: {0}", location.ToString()));

            base.SetLocation(location);
        }

Usage Example

示例#1
0
        public Node CreateNode(Node node)
        {
            var uri = UriHelper.ConcatUri(GraphEnvironment.GetBaseUri(), "db/data/node");
            var result = _graphRequest.Post(RequestType.POST, uri, node.GetProperties());
            node.SetLocation(result.GetLocation());

            return node;
        }
All Usage Examples Of Net.Graph.Neo4JD.Node::SetLocation