26 references to ModelBinding
Microsoft.AspNetCore.Mvc.Abstractions (2)
ApiExplorer\ApiParameterRouteInfo.cs (1)
34/// If the parameter uses <see cref="ModelBinding.BindingSource.ModelBinding"/> for the value of
ModelBinding\BindingSource.cs (1)
197if (this == ModelBinding)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (3)
251parameter.Source == BindingSource.ModelBinding || 259if (parameter.Source == BindingSource.ModelBinding && 562var source = BindingSource.ModelBinding;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
DefaultApiDescriptionProviderTest.cs (12)
1327Assert.Same(BindingSource.ModelBinding, parameter.Source); 1331Assert.Same(BindingSource.ModelBinding, parameter.Source); 1335Assert.Same(BindingSource.ModelBinding, parameter.Source); 1352Assert.Same(BindingSource.ModelBinding, parameter.Source); 1527Assert.Same(BindingSource.ModelBinding, parameter.Source); 1531Assert.Same(BindingSource.ModelBinding, parameter.Source); 1535Assert.Same(BindingSource.ModelBinding, parameter.Source); 1566Assert.Same(BindingSource.ModelBinding, comments.Source); 1777Assert.Same(BindingSource.ModelBinding, quantity.Source); 1781Assert.Same(BindingSource.ModelBinding, productId.Source); 1931Assert.Same(BindingSource.ModelBinding, items.Source); 2014Assert.Same(BindingSource.ModelBinding, comments.Source);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
43BindingSource = BindingSource.ModelBinding
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\BindingSourceTest.cs (3)
35BindingSource.ModelBinding, 47var result = BindingSource.ModelBinding.CanAcceptDataFrom(bindingSource); 84var result = BindingSource.ModelBinding.CanAcceptDataFrom(bindingSource);
ModelBinding\ModelBinderFactoryTest.cs (1)
305BindingSource = BindingSource.ModelBinding,
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
ApiExplorerTest.cs (4)
979Assert.Equal(BindingSource.ModelBinding.Id, i.Source); 983Assert.Equal(BindingSource.ModelBinding.Id, s.Source); 1028Assert.Equal(BindingSource.ModelBinding.Id, id.Source); 1032Assert.Equal(BindingSource.ModelBinding.Id, name.Source);