31 references to Form
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingSource.cs (1)
199
return bindingSource ==
Form
|| bindingSource == Path || bindingSource == Query;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (4)
1425
Assert.Same(BindingSource.
Form
, parameter.Source);
1429
Assert.Same(BindingSource.
Form
, parameter.Source);
1433
Assert.Same(BindingSource.
Form
, parameter.Source);
1979
Assert.Same(BindingSource.
Form
, id.Source);
Microsoft.AspNetCore.Mvc.Core (3)
FromFormAttribute.cs (1)
32
public BindingSource BindingSource => BindingSource.
Form
;
ModelBinding\FormValueProviderFactory.cs (1)
55
BindingSource.
Form
,
ModelBinding\JQueryFormValueProviderFactory.cs (1)
55
BindingSource.
Form
,
Microsoft.AspNetCore.Mvc.Core.Test (16)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
18
BindingSource.
Form
,
ModelBinding\Binders\DictionaryModelBinderTest.cs (2)
648
BindingSource.
Form
,
661
return new TestValueProvider(BindingSource.
Form
, backingStore);
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
21
BindingSource.
Form
,
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (1)
17
BindingSource.
Form
,
ModelBinding\BindingSourceValueProviderTest.cs (1)
39
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
ModelBinding\DefaultModelBindingContextTest.cs (2)
120
.BindingDetails(b => b.BindingSource = BindingSource.
Form
);
178
BindingSource.
Form
,
ModelBinding\JQueryFormValueProviderTest.cs (1)
24
var provider = new JQueryFormValueProvider(BindingSource.
Form
, dictionary, CultureInfo.CurrentCulture);
ModelBinding\JQueryQueryStringValueProviderTest.cs (1)
25
BindingSource.
Form
,
ModelBinding\Metadata\BindingSourceTest.cs (2)
18
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
34
BindingSource.
Form
,
ModelBinding\Metadata\CompositeBindingSourceTest.cs (4)
15
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
19
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
37
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
52
bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.
Form
},
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
ApiExplorerTest.cs (4)
1084
Assert.Equal(BindingSource.
Form
.Id, quantity.Source);
1088
Assert.Equal(BindingSource.
Form
.Id, productId.Source);
1092
Assert.Equal(BindingSource.
Form
.Id, productName.Source);
1100
Assert.Equal(BindingSource.
Form
.Id, feedback.Source);
Microsoft.AspNetCore.OpenApi (3)
Extensions\ApiDescriptionExtensions.cs (2)
85
apiParameterDescription.Source == BindingSource.
Form
;
95
formParameters = apiDescription.ParameterDescriptions.Where(parameter => parameter.Source == BindingSource.
Form
|| parameter.Source == BindingSource.FormFile);
Extensions\JsonNodeSchemaExtensions.cs (1)
347
|| bindingSource == BindingSource.
Form