/// <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); }
public DependencyRelationship Clone(TypeBase first, TypeBase second) { DependencyRelationship dependency = new DependencyRelationship(first, second); dependency.CopyFrom(this); return(dependency); }
public bool InsertDependency(DependencyRelationship dependency) { if (dependency != null && !relationships.Contains(dependency) && entities.Contains(dependency.First) && entities.Contains(dependency.Second)) { AddDependency(dependency); return(true); } else { return(false); } }
protected virtual void AddDependency(DependencyRelationship dependency) { AddRelationship(dependency); }