internal AssociationEnd AddAssociationEnd(AssociationEnd associationEnd) { if (_associationEnds.Contains(associationEnd)) { throw new ArgumentException("Association end already exists in collection"); } _associationEnds.Add(associationEnd); return(associationEnd); }
public void CopyPropertiesTo([NotNull] AssociationEnd other) { Assert.ArgumentNotNull(other, nameof(other)); other.CopyPolicy = _copyPolicy; if (other.CanChangeDocumentAssociationEditCore) { other.DocumentAssociationEdit = _documentAssociationEdit; } other.CascadeDeleteOrphans = _cascadeDeleteOrphans; other.CascadeDeletion = _cascadeDeletion; }
internal void RemoveAssociationEnd([NotNull] AssociationEnd associationEnd) { Assert.ArgumentNotNull(associationEnd, nameof(associationEnd)); _associationEnds.Remove(associationEnd); }