src/Shared/EntityFramework/Core/Metadata/Edm/ReferentialConstraint.cs
// <summary>
// Sets this item to be read-only, once this is set, the item will never be writable again.
// </summary>
Sets this item to be read-only, once this is set, the item will never be writable again.
Sets this item to be read - only once this is set the item will never be writable again .
internal override void SetReadOnly()
        {
            if (!IsReadOnly)
            {
                FromProperties.Source.SetReadOnly();
                ToProperties.Source.SetReadOnly();
                base.SetReadOnly();
                var fromRole = FromRole;
                if (fromRole != null)
                {
                    fromRole.SetReadOnly();
                }
                var toRole = ToRole;
                if (toRole != null)
                {
                    toRole.SetReadOnly();
                }
            }
        }
internal override void SetReadOnly ( ) { if ( ! IsReadOnly ) { FromProperties . Source . SetReadOnly ( ) ; ToProperties . Source . SetReadOnly ( ) ; base . SetReadOnly ( ) ; var fromRole = FromRole ; if ( fromRole != null ) { fromRole . SetReadOnly ( ) ; } var toRole = ToRole ; if ( toRole != null ) { toRole . SetReadOnly ( ) ; } } }
Sets this item to be read-only, once this is set, the item will never be writable again.
Sets this item to be read - only once this is set the item will never be writable again .