src/Shared/EntityFramework/Core/Metadata/Edm/util.cs
// <summary>
// Throws an appropriate exception if the given item is a readonly, used when an attempt is made to change
// a property
// </summary>
// <param name="item"> The item whose readonly is being tested </param>
Throws an appropriate exception if the given item is a readonly, used when an attempt is made to change
a property
Throws an appropriate exception if the given item is a readonly used when an attempt is made to change a property
internal static void ThrowIfReadOnly(MetadataItem item)
        {
            DebugCheck.NotNull(item);
            if (item.IsReadOnly)
            {
                throw new InvalidOperationException(Strings.OperationOnReadOnlyItem);
            }
        }
internal static void ThrowIfReadOnly ( MetadataItem item ) { DebugCheck . NotNull ( item ) ; if ( item . IsReadOnly ) { throw new InvalidOperationException ( Strings . OperationOnReadOnlyItem ) ; } }
Throws an appropriate exception if the given item is a readonly, used when an attempt is made to change
a property
Throws an appropriate exception if the given item is a readonly used when an attempt is made to change a property
item
MetadataItem
The item whose readonly is being tested
The item whose readonly is being tested