4 overrides of IsBindingRequired
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcModelMetadata.cs (1)
35public override bool IsBindingRequired { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
604public override bool IsBindingRequired
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
35public override bool IsBindingRequired { get; }
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
262public override bool IsBindingRequired
33 references to IsBindingRequired
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
313if (parameter.ModelMetadata != null && parameter.ModelMetadata.IsBindingRequired)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
1355Assert.True(parameter.ModelMetadata.IsBindingRequired);
Microsoft.AspNetCore.Mvc.Core (22)
ModelBinding\Binders\ArrayModelBinder.cs (2)
39/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 64/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder
ModelBinding\Binders\CollectionModelBinder.cs (5)
49/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 74/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 206/// <see cref="ModelMetadata.IsBindingRequired" />. 213/// <see cref="ModelMetadata.IsBindingRequired" /> failure for collections. Add the error here. 218if (modelMetadata.IsBindingRequired)
ModelBinding\Binders\ComplexObjectModelBinder.cs (5)
118modelMetadata.IsBindingRequired) 283else if (parameter.IsBindingRequired) 375else if (property.IsBindingRequired) 469else if (property.IsBindingRequired) 498if (!result.IsModelSet && parameter.IsBindingRequired)
ModelBinding\Binders\ComplexTypeModelBinder.cs (4)
61/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 150else if (property.IsBindingRequired) 183modelMetadata.IsBindingRequired) 289else if (property.IsBindingRequired)
ModelBinding\Binders\DictionaryModelBinder.cs (4)
44/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 52/// <see cref="ModelMetadata.IsBindingRequired"/>. 78/// <see cref="ModelMetadata.IsBindingRequired"/> is <see langword="true"/> for a top-level model, the binder 89/// <see cref="ModelMetadata.IsBindingRequired"/>.
ModelBinding\Metadata\BindingMetadata.cs (1)
68/// See <see cref="ModelMetadata.IsBindingRequired"/>.
ModelBinding\ParameterBinder.cs (1)
182if (!modelBindingResult.IsModelSet && metadata.IsBindingRequired)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\ParameterBinderTest.cs (1)
62mockModelMetadata.Setup(o => o.IsBindingRequired).Returns(true);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
ModelMetadataProviderTest.cs (8)
720Assert.True(metadata.IsBindingRequired); 735Assert.False(metadata.IsBindingRequired); 750Assert.False(metadata.IsBindingRequired); 810Assert.False(metadata.IsBindingRequired); 826Assert.True(metadata.IsBindingRequired); 842Assert.False(metadata.IsBindingRequired); 858Assert.False(metadata.IsBindingRequired); 874Assert.False(metadata.IsBindingRequired);