Esempio n. 1
0
        /// <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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 protected virtual void AddCommentRelationship(CommentRelationship commentRelationship)
 {
     AddRelationship(commentRelationship);
 }
Esempio n. 5
0
		/// <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;
		}
Esempio n. 6
0
		public CommentRelationship Clone(Comment comment, IEntity entity)
		{
			CommentRelationship relationship = new CommentRelationship(comment, entity);
			relationship.CopyFrom(this);
			return relationship;
		}