protected bool Equals(ModelRelationship other) { return(Source.Equals(other.Source) && Target.Equals(other.Target) && Classifier == other.Classifier && Stereotype.Equals(other.Stereotype)); }
public virtual void RemoveRelationship(ModelRelationship relationship) => _graph.RemoveEdge(relationship);
public virtual ModelRelationship GetOrAddRelationship(IModelEntity sourceEntity, IModelEntity targetEntity, ModelRelationshipType relationType) { var relationship = new ModelRelationship(sourceEntity, targetEntity, relationType); return(this.GetOrAddRelationship(relationship)); }
public virtual ModelRelationship GetOrAddRelationship(ModelRelationship relationship) => _graph.GetOrAddEdge(i => i == relationship, () => relationship).Result;