상속: Relationship
예제 #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);
        }
예제 #2
0
        public CommentRelationship Clone(Comment comment, IEntity entity)
        {
            var relationship = new CommentRelationship(comment, entity);

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