7 writes to IsReadOnly
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Binders\ArrayModelBinderProviderTest.cs (1)
79nameof(ModelWithIntArrayProperty.ArrayProperty)).BindingDetails(bd => bd.IsReadOnly = true);
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
197nameof(ModelWithIntArrayProperty.ArrayProperty)).BindingDetails(bd => bd.IsReadOnly = false);
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
483.BindingDetails(bd => bd.IsReadOnly = isReadOnly);
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
671.BindingDetails(bd => bd.IsReadOnly = isReadOnly);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
737IsReadOnly = true, // Will be ignored.
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
49context.BindingMetadata.IsReadOnly = !editableAttribute.AllowEdit;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsMetadataProviderTest.cs (1)
1508context.BindingMetadata.IsReadOnly = initialValue;
5 references to IsReadOnly
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
299else if (BindingMetadata.IsReadOnly.HasValue) 301_isReadOnly = BindingMetadata.IsReadOnly;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
DataAnnotationsMetadataProviderTest.cs (3)
163Assert.True(context.BindingMetadata.IsReadOnly); 182Assert.False(context.BindingMetadata.IsReadOnly); 1514Assert.Equal(initialValue, context.BindingMetadata.IsReadOnly);