4 overrides of BinderModelName
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcModelMetadata.cs (1)
19public override string BinderModelName { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
471public override string BinderModelName
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
19public override string? BinderModelName { get; }
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
170public override string? BinderModelName => BindingMetadata.BinderModelName;
35 references to BinderModelName
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\BindingInfo.cs (2)
233if (BinderModelName == null && modelMetadata.BinderModelName != null) 236BinderModelName = modelMetadata.BinderModelName;
Microsoft.AspNetCore.Mvc.Core (17)
ModelBinding\Binders\ComplexObjectModelBinder.cs (6)
241var fieldName = parameter.BinderModelName ?? parameter.ParameterName!; 303var fieldName = parameter.BinderModelName ?? parameter.ParameterName!; 366var fieldName = property.BinderModelName ?? property.PropertyName!; 395var fieldName = property.BinderModelName ?? property.PropertyName!; 595var fieldName = propertyMetadata.BinderModelName ?? propertyMetadata.PropertyName!; 631var fieldName = parameterMetadata.BinderModelName ?? parameterMetadata.ParameterName!;
ModelBinding\Binders\ComplexTypeModelBinder.cs (3)
141var fieldName = property.BinderModelName ?? property.PropertyName; 169var fieldName = property.BinderModelName ?? property.PropertyName; 396var fieldName = propertyMetadata.BinderModelName ?? propertyMetadata.PropertyName;
ModelBinding\DefaultModelBindingContext.cs (2)
209var binderModelName = bindingInfo?.BinderModelName ?? metadata.BinderModelName; 268BinderModelName = modelMetadata.BinderModelName;
ModelBinding\Metadata\BindingMetadata.cs (1)
28/// See <see cref="ModelMetadata.BinderModelName"/>.
ModelBinding\ModelBindingHelper.cs (2)
256BinderModelName = modelMetadata.BinderModelName, 418modelState.ClearValidationState((property.BinderModelName ?? property.PropertyName)!);
ModelBinding\ParameterBinder.cs (1)
115var parameterModelName = parameter.BindingInfo?.BinderModelName ?? metadata.BinderModelName;
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
87var parameterName = parameter.BinderModelName ?? parameter.ParameterName; 108var propertyName = property.ValidationModelName ?? property.BinderModelName ?? property.PropertyName;
Microsoft.AspNetCore.Mvc.Core.Test (11)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1424yield return new ModelValidationResult(context.ModelMetadata.BinderModelName, Message);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
1098BinderModelName = metadata.BinderModelName, 1111BinderModelName = metadata.BinderModelName,
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
1262BinderModelName = metadata.BinderModelName, 1275BinderModelName = metadata.BinderModelName,
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
352BinderModelName = metadata.BinderModelName, 381BinderModelName = metadata.BinderModelName,
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
55BinderModelName = modelMetadata.BinderModelName,
ModelBinding\DefaultModelBindingContextTest.cs (1)
51Assert.Same(newModelMetadata.BinderModelName, bindingContext.BinderModelName);
ModelBinding\TestModelBinderProviderContext.cs (2)
33BinderModelName = Metadata.BinderModelName, 48BinderModelName = Metadata.BinderModelName,
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
ModelMetadataProviderTest.cs (4)
57Assert.Equal("TypePrefix", metadata.BinderModelName); 156Assert.Equal("PersonType", propertyMetadata.BinderModelName); 169Assert.Equal("GrandParentProperty", propertyMetadata.BinderModelName); 213new TestModelNameProvider { Name = "value" }, metadata => metadata.BinderModelName
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ModelStateDictionaryExtensions.cs (1)
128var childKey = property.BinderModelName ?? property.PropertyName;