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