Implemented interface member:
property
BindingInfo
Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel.BindingInfo
18 writes to BindingInfo
ApplicationModelWebSite (1)
Controllers\ParameterModelController.cs (1)
25model.BindingInfo = model.BindingInfo ?? new BindingInfo();
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
240BindingInfo = bindingInfo, 455BindingInfo = bindingInfo,
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
87parameter.BindingInfo ??= new BindingInfo();
ApplicationModels\ParameterModelBase.cs (1)
41BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
ApplicationModels\PropertyModel.cs (1)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
36action.Parameters[0].BindingInfo = new BindingInfo
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
27BindingInfo = BindingInfo.GetBindingInfo(new object[] { new FromQueryAttribute() }),
ApplicationModels\ParameterModelTest.cs (1)
19parameter.BindingInfo = new BindingInfo()
ApplicationModels\PropertyModelTest.cs (1)
19propertyModel.BindingInfo = BindingInfo.GetBindingInfo(propertyModel.Attributes);
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (2)
94BindingInfo = bindingInfo, 134BindingInfo = bindingInfo,
ApplicationModels\PagePropertyModel.cs (1)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
76BindingInfo = new BindingInfo(), 127BindingInfo = new BindingInfo(), 262BindingInfo = new BindingInfo(), 318BindingInfo = new BindingInfo(), 360BindingInfo = new BindingInfo(),
92 references to BindingInfo
ApplicationModelWebSite (3)
Controllers\ParameterModelController.cs (3)
25model.BindingInfo = model.BindingInfo ?? new BindingInfo(); 26model.BindingInfo.BindingSource = BindingSource.Custom; 27model.BindingInfo.BinderModelName = "CoolMetadata";
Microsoft.AspNetCore.Mvc.Core (14)
ApplicationModels\ConsumesConstraintForFormFileParameterConvention.cs (1)
50var bindingSource = parameter.BindingInfo?.BindingSource;
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
57.Where(p => p.BindingInfo != null) 80BindingInfo = parameterModel.BindingInfo, 91BindingInfo = propertyModel.BindingInfo,
ApplicationModels\InferParameterBindingInfoConvention.cs (5)
84var bindingSource = parameter.BindingInfo?.BindingSource; 88parameter.BindingInfo.BindingSource = InferBindingSourceForParameter(parameter); 92var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList(); 106fromBodyParameters[0].BindingInfo!.EmptyBodyBehavior == EmptyBodyBehavior.Default && 109fromBodyParameters[0].BindingInfo!.EmptyBodyBehavior = EmptyBodyBehavior.Allow;
ApplicationModels\ParameterModelBase.cs (3)
41BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo); 67/// The <see cref="BindingInfo"/>.
ApplicationModels\PropertyModel.cs (2)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
Microsoft.AspNetCore.Mvc.Core.Test (46)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
78Assert.Equal(BindingSource.Body, parameterModel.BindingInfo.BindingSource); 121Assert.Equal(BindingSource.Body, parameterModel.BindingInfo.BindingSource);
ApplicationModels\DefaultApplicationModelProviderTest.cs (18)
81Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource); 90Assert.Equal(BindingSource.FormFile, property.BindingInfo.BindingSource); 98Assert.Equal(BindingSource.Services, property.BindingInfo.BindingSource); 107Assert.Null(property.BindingInfo); 133Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource); 142Assert.Equal(BindingSource.FormFile, property.BindingInfo.BindingSource); 150Assert.Equal(BindingSource.Services, property.BindingInfo.BindingSource); 159Assert.Equal(BindingSource.Special, property.BindingInfo.BindingSource); 186Assert.Equal(BindingSource.Query, parameter.BindingInfo.BindingSource); 195Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 203Assert.Null(parameter.BindingInfo); 230Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 235Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 240Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 245Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 250Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 278Assert.Equal(BindingSource.Special, parameter.BindingInfo.BindingSource); 306Assert.Equal(BindingSource.Query, parameter.BindingInfo.BindingSource);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (26)
30Assert.NotNull(parameterModel.BindingInfo); 31Assert.Same(BindingSource.Custom, parameterModel.BindingInfo.BindingSource); 48Assert.NotNull(parameterModel.BindingInfo); 49Assert.Null(parameterModel.BindingInfo.BindingSource); 128var bindingInfo = parameter.BindingInfo; 137var bindingInfo = parameter.BindingInfo; 162var bindingInfo = parameter.BindingInfo; 188var bindingInfo = parameter.BindingInfo; 214var bindingInfo = parameter.BindingInfo; 236var bindingInfo = parameter.BindingInfo; 257var bindingInfo = parameter.BindingInfo; 278var bindingInfo = parameter.BindingInfo; 528Assert.Same(BindingSource.Body, model.BindingInfo.BindingSource); 531Assert.Same(BindingSource.Special, cancellationToken.BindingInfo.BindingSource); 660var bindingInfo = parameter.BindingInfo; 681var bindingInfo = parameter.BindingInfo; 702var bindingInfo = parameter.BindingInfo; 722var bindingInfo = parameter.BindingInfo; 743var bindingInfo = parameter.BindingInfo; 764var bindingInfo = parameter.BindingInfo; 785var bindingInfo = parameter.BindingInfo; 806var bindingInfo = parameter.BindingInfo; 827var bindingInfo = parameter.BindingInfo; 848var bindingInfo = parameter.BindingInfo; 868var bindingInfo = parameter.BindingInfo; 891var bindingInfo = parameter.BindingInfo;
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (3)
108BindingInfo = parameterModel.BindingInfo, 128if (propertyModel.BindingInfo == null) 137BindingInfo = propertyModel.BindingInfo,
ApplicationModels\PagePropertyModel.cs (2)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (3)
296Assert.Same(parameterModel2.BindingInfo, p.BindingInfo); 339Assert.Same(propertyModel.BindingInfo, p.BindingInfo); 388Assert.Same(propertyModel1.BindingInfo, p.BindingInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (21)
157Assert.Null(property.BindingInfo); 164Assert.NotNull(property.BindingInfo); 165Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource); 206Assert.NotNull(property.BindingInfo); 207Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource); 244context.PageApplicationModel.HandlerProperties.OrderBy(p => p.PropertyName).Where(p => p.BindingInfo != null), 250Assert.NotNull(property.BindingInfo); 257Assert.NotNull(property.BindingInfo); 346Assert.Null(property.BindingInfo); 354Assert.NotNull(property.BindingInfo); 355Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource); 362Assert.NotNull(property.BindingInfo); 363Assert.Equal(BindingSource.Services, property.BindingInfo.BindingSource); 387Assert.NotNull(property.BindingInfo); 392Assert.NotNull(property.BindingInfo); 393Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource); 455Assert.DoesNotContain(pageModel.HandlerProperties, p => p.BindingInfo != null); 476Assert.DoesNotContain(pageModel.HandlerProperties, p => p.BindingInfo != null); 921Assert.Equal("personId", p.BindingInfo.BinderModelName); 987Assert.NotNull(p.BindingInfo.RequestPredicate); 988Assert.True(p.BindingInfo.RequestPredicate(new ActionContext