Exemplo n.º 1
0
        internal AssociationEnd AddAssociationEnd(AssociationEnd associationEnd)
        {
            if (_associationEnds.Contains(associationEnd))
            {
                throw new ArgumentException("Association end already exists in collection");
            }

            _associationEnds.Add(associationEnd);

            return(associationEnd);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        internal void RemoveAssociationEnd([NotNull] AssociationEnd associationEnd)
        {
            Assert.ArgumentNotNull(associationEnd, nameof(associationEnd));

            _associationEnds.Remove(associationEnd);
        }