Ejemplo n.º 1
0
        public override object RemoveProperty(string key)
        {
            ElementContract.ValidateRemoveProperty(key);
            if (PropertyBased && key == IdGraph.Id)
            {
                throw new ArgumentException(string.Concat("Unable to remove value for reserved property ", IdGraph.Id));
            }

            return(BaseElement.RemoveProperty(key));
        }
Ejemplo n.º 2
0
            public override object RemoveProperty(string key)
            {
                ElementContract.ValidateRemoveProperty(key);
                object result       = null;
                var    cachedVertex = _batchInnerTinkerGrapĥ.GetCachedVertex(_externalId);

                if (cachedVertex != null)
                {
                    result = cachedVertex.RemoveProperty(key);
                }
                return(result);
            }
Ejemplo n.º 3
0
        /// <note>
        ///     Raises a vertexPropertyRemoved or edgePropertyRemoved event.
        /// </note>
        public override object RemoveProperty(string key)
        {
            ElementContract.ValidateRemoveProperty(key);
            var propertyRemoved = Element.RemoveProperty(key);

            var vertex = this as IVertex;

            if (vertex != null)
            {
                OnVertexPropertyRemoved(vertex, key, propertyRemoved);
            }
            else
            {
                var edge = this as IEdge;
                if (edge != null)
                {
                    OnEdgePropertyRemoved(edge, key, propertyRemoved);
                }
            }

            return(propertyRemoved);
        }
Ejemplo n.º 4
0
 public override object RemoveProperty(string key)
 {
     ElementContract.ValidateRemoveProperty(key);
     return(Element.RemoveProperty(key));
 }
Ejemplo n.º 5
0
 public override object RemoveProperty(string key)
 {
     ElementContract.ValidateRemoveProperty(key);
     throw new InvalidOperationException(ReadOnlyTokens.MutateErrorMessage);
 }
Ejemplo n.º 6
0
 public override object RemoveProperty(string key)
 {
     ElementContract.ValidateRemoveProperty(key);
     return(key.Equals(PartitionInnerTinkerGrapĥ.PartitionKey) ? null : Element.RemoveProperty(key));
 }
Ejemplo n.º 7
0
 public override object RemoveProperty(string key)
 {
     ElementContract.ValidateRemoveProperty(key);
     return(GetWrappedEdge().RemoveProperty(key));
 }