public override void SetProperty(string key, object value) { ElementContract.ValidateSetProperty(key, value); if (!key.Equals(PartitionInnerTinkerGrapĥ.PartitionKey)) { Element.SetProperty(key, value); } }
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)); }
public override void SetProperty(string key, object value) { ElementContract.ValidateSetProperty(key, value); var cachedVertex = _batchInnerTinkerGrapĥ.GetCachedVertex(_externalId); if (cachedVertex != null) { cachedVertex.SetProperty(key, value); } }
public override void SetProperty(string key, object value) { ElementContract.ValidateSetProperty(key, value); if (PropertyBased && key == IdGraph.Id) { throw new ArgumentException(string.Concat("Unable to set value for reserved property ", IdGraph.Id)); } BaseElement.SetProperty(key, value); }
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); }
/// <note> /// Raises a vertexPropertyRemoved or edgePropertyChanged event. /// </note> public override void SetProperty(string key, object value) { ElementContract.ValidateSetProperty(key, value); object oldValue = Element.GetProperty(key); Element.SetProperty(key, value); var vertex = this as IVertex; if (vertex != null) { OnVertexPropertyChanged(vertex, key, oldValue, value); } else { var edge = this as IEdge; if (edge != null) { OnEdgePropertyChanged(edge, key, oldValue, value); } } }
/// <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); }
public override object RemoveProperty(string key) { ElementContract.ValidateRemoveProperty(key); return(Element.RemoveProperty(key)); }
public override object GetProperty(string key) { ElementContract.ValidateGetProperty(key); return(Element.GetProperty(key)); }
public override object RemoveProperty(string key) { ElementContract.ValidateRemoveProperty(key); throw new InvalidOperationException(ReadOnlyTokens.MutateErrorMessage); }
public override object RemoveProperty(string key) { ElementContract.ValidateRemoveProperty(key); return(key.Equals(PartitionInnerTinkerGrapĥ.PartitionKey) ? null : Element.RemoveProperty(key)); }
public override object RemoveProperty(string key) { ElementContract.ValidateRemoveProperty(key); return(GetWrappedEdge().RemoveProperty(key)); }
public override void SetProperty(string key, object value) { ElementContract.ValidateSetProperty(key, value); GetWrappedEdge().SetProperty(key, value); }