private SingleEdgeUpdateDefinition CreateSingleEdgeUpdateDefinition(ISingleEdge iSingleEdge) { var sourceVertex = iSingleEdge.GetSourceVertex(); var targetVertex = iSingleEdge.GetTargetVertex(); var structuredProperties = iSingleEdge.GetAllProperties(); var unstructuredProperties = iSingleEdge.GetAllUnstructuredProperties(); return new SingleEdgeUpdateDefinition( new VertexInformation(sourceVertex.VertexTypeID, sourceVertex.VertexID, sourceVertex.VertexRevisionID, sourceVertex.EditionName), new VertexInformation(targetVertex.VertexTypeID, targetVertex.VertexID, targetVertex.VertexRevisionID, targetVertex.EditionName), iSingleEdge.EdgeTypeID, iSingleEdge.Comment, new StructuredPropertiesUpdate( structuredProperties != null && structuredProperties.Count() > 0 ? structuredProperties.ToDictionary(key => key.PropertyID, value => value.Property) : null), new UnstructuredPropertiesUpdate( unstructuredProperties != null && unstructuredProperties.Count() > 0 ? unstructuredProperties.ToDictionary(key => key.PropertyName, value => value.Property) : null)); }
public ServiceSingleEdgeInstance(ISingleEdge mySingleEdge, Nullable<Int64> myEdgePropertyID, ServiceVertexInstance myHyperEdgeSourceVertex = null) : base(mySingleEdge as IEdge, myEdgePropertyID) { this.TargetVertex = new ServiceVertexInstance(mySingleEdge.GetTargetVertex()); this.HyperEdgeSourceVertex = myHyperEdgeSourceVertex; }
public ServiceSingleEdgeInstance(ISingleEdge myEdge) : base(myEdge) { TargetVertex = new ServiceVertexInstance(myEdge.GetTargetVertex()); }
private SingleEdgeView GenerateASingleEdgeView(SecurityToken mySecurityToken, Int64 myTransactionToken, ISingleEdge aSingleEdge, IVertexType myVertexType, long myDepth, EdgeList myEdgeList, string reference, bool myUsingGraph, IEdgeType myInnerEdgeType) { return new SingleEdgeView(GetEdgeProperties(aSingleEdge, myInnerEdgeType), LoadAndResolveVertex(mySecurityToken, myTransactionToken, aSingleEdge.GetTargetVertex(), myVertexType, myDepth, myEdgeList, reference, myUsingGraph)); }
public ServiceSingleEdgeInstance(ISingleEdge mySingleEdge, Nullable <Int64> myEdgePropertyID, ServiceVertexInstance myHyperEdgeSourceVertex = null) : base(mySingleEdge as IEdge, myEdgePropertyID) { this.TargetVertex = new ServiceVertexInstance(mySingleEdge.GetTargetVertex()); this.HyperEdgeSourceVertex = myHyperEdgeSourceVertex; }