Exemplo 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);
        }
Exemplo n.º 2
0
        public CommentRelationship Clone(Comment comment, IEntity entity)
        {
            var relationship = new CommentRelationship(comment, entity);

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