/// <exception cref="ArgumentNullException"> /// <paramref name="comment"/> or <paramref name="entity"/> is null. /// </exception> public virtual CommentRelationship AddCommentRelationship(Comment comment, IEntity entity) { CommentRelationship commentRelationship = new CommentRelationship(comment, entity); AddCommentRelationship(commentRelationship); return(commentRelationship); }
public CommentRelationship Clone(Comment comment, IEntity entity) { var relationship = new CommentRelationship(comment, entity); relationship.CopyFrom(this); return(relationship); }
public bool InsertCommentRelationship(CommentRelationship commentRelationship) { if ((commentRelationship != null) && !relationships.Contains(commentRelationship) && entities.Contains(commentRelationship.First) && entities.Contains(commentRelationship.Second)) { AddCommentRelationship(commentRelationship); return(true); } return(false); }
protected virtual void AddCommentRelationship(CommentRelationship commentRelationship) { AddRelationship(commentRelationship); }
/// <exception cref="ArgumentNullException"> /// <paramref name="relationship"/> is null.-or- /// <paramref name="startShape"/> is null.-or- /// <paramref name="endShape"/> is null. /// </exception> public CommentConnection(CommentRelationship relationship, Shape startShape, Shape endShape) : base(relationship, startShape, endShape) { this.relationship = relationship; }
public CommentRelationship Clone(Comment comment, IEntity entity) { CommentRelationship relationship = new CommentRelationship(comment, entity); relationship.CopyFrom(this); return relationship; }