Beispiel #1
0
        /// <summary>
        /// Adds a new edge to the vertex defintion
        /// </summary>
        /// <param name="myEdgeName">The name of the edge to be inserted</param>
        /// <param name="myEdgeDefinition">The definition of the edge</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestUpdate UpdateEdge(EdgePredefinition myEdgeDefinition)
        {
            UpdateOutgoingEdges = UpdateOutgoingEdges ?? new List<EdgePredefinition>();
            UpdateOutgoingEdges.Add(myEdgeDefinition);

            return this;
        }
Beispiel #2
0
        /// <summary>
        /// Removes elements from a collection
        /// </summary>
        /// <param name="myAttributeName">The attribute that is going to be updated</param>
        /// <param name="myToBeRemovedElements">The elements that should be removed</param>
        /// <returns>The request itself</returns>
        public RequestUpdate RemoveElementsFromCollection(String myAttributeName, EdgePredefinition myToBeRemovedElements)
        {
            RemovedElementsFromCollectionEdges = RemovedElementsFromCollectionEdges ?? new Dictionary<String, EdgePredefinition>();
            RemovedElementsFromCollectionEdges[myAttributeName] = myToBeRemovedElements;

            return this;
        }
Beispiel #3
0
        /// <summary>
        /// Adds a new edge to the vertex defintion
        /// </summary>
        /// <param name="myEdgeName">The name of the edge to be inserted</param>
        /// <param name="myEdgeDefinition">The definition of the edge</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestInsertVertex AddEdge(EdgePredefinition myEdgeDefinition)
        {
            _edges = _edges ?? new HashSet<EdgePredefinition>();
            _edges.Add(myEdgeDefinition);

            return this;
        }
Beispiel #4
0
        /// <summary>
        /// Adds elements To a collection
        /// </summary>
        /// <param name="myAttributeName">The attribute that is going to be updated</param>
        /// <param name="myToBeAddedElements">The elements that should be added</param>
        /// <returns>The request itself</returns>
        public RequestUpdate AddElementsToCollection(String myAttributeName, EdgePredefinition myToBeAddedElements)
        {
            AddedElementsToCollectionEdges = AddedElementsToCollectionEdges ?? new Dictionary<String, EdgePredefinition>();
            AddedElementsToCollectionEdges[myAttributeName] = myToBeAddedElements;

            return this;
        }
Beispiel #5
0
        /// <summary>
        /// Adds an edge to this edge.
        /// </summary>
        /// <param name="myContainedEdge">The edges that will be contained by this hyper edge.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public EdgePredefinition AddEdge(EdgePredefinition myContainedEdge)
        {
            _edges = _edges ?? new List<EdgePredefinition>();
            _edges.Add(myContainedEdge);

            return this;
        }