Inheritance: TypeRelationship
示例#1
0
        /// <exception cref="ArgumentNullException">
        /// <paramref name="first"/> or <paramref name="second"/> is null.
        /// </exception>
        public DependencyRelationship AddDependency(TypeBase first, TypeBase second)
        {
            DependencyRelationship dependency = new DependencyRelationship(first, second);

            AddDependency(dependency);
            return(dependency);
        }
示例#2
0
        public DependencyRelationship Clone(TypeBase first, TypeBase second)
        {
            DependencyRelationship dependency = new DependencyRelationship(first, second);

            dependency.CopyFrom(this);
            return(dependency);
        }
示例#3
0
 public bool InsertDependency(DependencyRelationship dependency)
 {
     if ((dependency != null) && !relationships.Contains(dependency) && entities.Contains(dependency.First) && entities.Contains(dependency.Second))
     {
         AddDependency(dependency);
         return(true);
     }
     return(false);
 }
示例#4
0
 protected virtual void AddDependency(DependencyRelationship dependency)
 {
     AddRelationship(dependency);
 }
示例#5
0
		public DependencyRelationship Clone(TypeBase first, TypeBase second)
		{
			DependencyRelationship dependency = new DependencyRelationship(first, second);
			dependency.CopyFrom(this);
			return dependency;
		}
示例#6
0
		/// <exception cref="ArgumentNullException">
		/// <paramref name="dependency"/> is null.-or-
		/// <paramref name="startShape"/> is null.-or-
		/// <paramref name="endShape"/> is null.
		/// </exception>
		public Dependency(DependencyRelationship dependency, Shape startShape, Shape endShape)
			: base(dependency, startShape, endShape)
		{
			this.dependency = dependency;
		}