/// <summary> /// Returns all unstructured properties of this graph element /// </summary> /// <param name="myFilter">An optional filter function</param> /// <returns>An enumerable of propertyName/PropertyValue</returns> protected IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredPropertiesProtected( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { if (_unstructuredProperties != null) { foreach (var aUnstructuredProperty in _unstructuredProperties) { if (myFilter != null) { if (myFilter(aUnstructuredProperty.Key, aUnstructuredProperty.Value)) { yield return (new UnstructuredPropertyContainer { PropertyName = aUnstructuredProperty.Key, Property = aUnstructuredProperty.Value }); } } else { yield return(new UnstructuredPropertyContainer { PropertyName = aUnstructuredProperty.Key, Property = aUnstructuredProperty.Value }); } } } yield break; }
/// <summary> /// Returns all unstructured properties of this graph element /// </summary> /// <param name="myFilter">An optional filter function</param> /// <returns>An enumerable of propertyName/PropertyValue</returns> protected IEnumerable <Tuple <string, object> > GetAllUnstructuredPropertiesProtected( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { if (_unstructuredProperties != null) { foreach (var aUnstructuredProperty in _unstructuredProperties) { if (myFilter != null) { if (myFilter(aUnstructuredProperty.Key, aUnstructuredProperty.Value)) { yield return (new Tuple <String, object>(aUnstructuredProperty.Key, aUnstructuredProperty.Value)); } } else { yield return(new Tuple <String, object>(aUnstructuredProperty.Key, aUnstructuredProperty.Value)); } } } yield break; }
public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter) { return(_Vertex.GetAllUnstructuredProperties(myFilter)); }
public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(_ServiceToken.EdgeService.GetAllUnstructuredPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this)).Select(_ => new UnstructuredPropertyContainer { PropertyName = _.PropertyName, Property = _.Property })); }
public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(GetAllUnstructuredPropertiesProtected(myFilter)); }
public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(_ServiceToken.EdgeService.GetAllUnstructuredPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this))); }
public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(_ServiceToken.VertexService.GetAllUnstructuredPropertiesByVertexInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this)).Select(_ => new UnstructuredPropertyContainer { PropertyName = _.PropertyName, Property = _.Property }).ToList()); }
public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(_ServiceToken.VertexService.GetAllUnstructuredPropertiesByVertexInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this))); }
public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null) { return(GetAllUnstructuredPropertiesProtected(myFilter)); }
public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties( PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter) { return(_Vertex.GetAllUnstructuredProperties(myFilter)); }