2There are two-way associations between classes, but one class does not need the features of another class.Remove unnecessary associations.
Motivation: bidirectional Association is useful, but you must pay for it, that is, maintain bidirectional connections and ensure that objects are created and deleted correctly. BesidesProgramMembers are not used to bidirectional Association, which is often the source of errors.
A large number of two-way connections can easily cause "zombie objects": an object should have died, but it is still stored in the system because its reference is not completely cleared.
In addition, bidirectional Association also forces the dependency between two classes: any modifications to any of these classes may lead to changes to the other class. If these two classes are located in different assemblies, this dependency is the dependency between assemblies. Too many cross-assembly dependencies will create a tightly coupled system, so that any small changes may cause many unpredictable consequences.
it is used only when two-way association is required. If two-way association no longer has value, remove unnecessary Association.