protected bool Equals(ModelRelationship other)
 {
     return(Source.Equals(other.Source) &&
            Target.Equals(other.Target) &&
            Classifier == other.Classifier &&
            Stereotype.Equals(other.Stereotype));
 }
Beispiel #2
0
 public virtual void RemoveRelationship(ModelRelationship relationship) => _graph.RemoveEdge(relationship);
Beispiel #3
0
        public virtual ModelRelationship GetOrAddRelationship(IModelEntity sourceEntity, IModelEntity targetEntity, ModelRelationshipType relationType)
        {
            var relationship = new ModelRelationship(sourceEntity, targetEntity, relationType);

            return(this.GetOrAddRelationship(relationship));
        }
Beispiel #4
0
 public virtual ModelRelationship GetOrAddRelationship(ModelRelationship relationship)
 => _graph.GetOrAddEdge(i => i == relationship, () => relationship).Result;