136 references to Query
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
161
Source = BindingSource.
Query
,
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingSource.cs (1)
199
return bindingSource == Form || bindingSource == Path || bindingSource ==
Query
;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
27
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
EndpointMetadataApiDescriptionProvider.cs (3)
263
return (BindingSource.
Query
, queryAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType);
300
return (BindingSource.
Query
, parameter.Name ?? string.Empty, false, displayType);
312
return (BindingSource.
Query
, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (34)
DefaultApiDescriptionProviderTest.cs (27)
1389
Assert.Same(BindingSource.
Query
, parameter.Source);
1585
Assert.Same(BindingSource.
Query
, id.Source);
1604
Assert.Same(BindingSource.
Query
, id.Source);
1623
Assert.Same(BindingSource.
Query
, id.Source);
1642
Assert.Same(BindingSource.
Query
, id.Source);
1661
Assert.Same(BindingSource.
Query
, id.Source);
1680
Assert.Same(BindingSource.
Query
, id.Source);
1699
Assert.Same(BindingSource.
Query
, id.Source);
1718
Assert.Same(BindingSource.
Query
, id.Source);
1722
Assert.Same(BindingSource.
Query
, product.Source);
1754
Assert.Same(BindingSource.
Query
, comments.Source);
1785
Assert.Same(BindingSource.
Query
, price.Source);
1809
Assert.Same(BindingSource.
Query
, quantity.Source);
1813
Assert.Same(BindingSource.
Query
, productId.Source);
1817
Assert.Same(BindingSource.
Query
, productPrice.Source);
1840
Assert.Same(BindingSource.
Query
, id.Source);
1844
Assert.Same(BindingSource.
Query
, name.Source);
1871
Assert.Same(BindingSource.
Query
, id.Source);
1875
Assert.Same(BindingSource.
Query
, name.Source);
1894
Assert.Same(BindingSource.
Query
, c.Source);
1912
Assert.Same(BindingSource.
Query
, products.Source);
1953
Assert.Same(BindingSource.
Query
, id.Source);
1957
Assert.Same(BindingSource.
Query
, name.Source);
1998
Assert.Same(BindingSource.
Query
, name.Source);
2073
Source = BindingSource.
Query
,
2174
Source = BindingSource.
Query
,
2197
Source = BindingSource.
Query
,
EndpointMetadataApiDescriptionProviderTest.cs (7)
537
Assert.Equal(BindingSource.
Query
, param.Source);
634
Assert.Equal(BindingSource.
Query
, barParam.Source);
664
Assert.Equal(BindingSource.
Query
, param.Source);
754
Assert.Equal(BindingSource.
Query
, barParam.Source);
793
Assert.Equal(BindingSource.
Query
, fooParam.Source);
799
Assert.Equal(BindingSource.
Query
, barParam.Source);
812
Assert.Equal(BindingSource.
Query
, nameParam.Source);
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
23
/// <item>All other parameters are <see cref="BindingSource.
Query
"/>.</item>
131
return BindingSource.
Query
;
FromQueryAttribute.cs (1)
31
public BindingSource BindingSource => BindingSource.
Query
;
ModelBinding\JQueryQueryStringValueProviderFactory.cs (1)
24
BindingSource.
Query
,
ModelBinding\QueryStringValueProviderFactory.cs (1)
25
BindingSource.
Query
,
Microsoft.AspNetCore.Mvc.Core.Test (83)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
56
Assert.Equal(BindingSource.
Query
, property.BindingInfo.BindingSource);
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
81
Assert.Equal(BindingSource.
Query
, property.BindingInfo.BindingSource);
133
Assert.Equal(BindingSource.
Query
, property.BindingInfo.BindingSource);
186
Assert.Equal(BindingSource.
Query
, parameter.BindingInfo.BindingSource);
306
Assert.Equal(BindingSource.
Query
, parameter.BindingInfo.BindingSource);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (12)
238
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
431
Assert.Same(BindingSource.
Query
, result);
491
Assert.Same(BindingSource.
Query
, result);
546
Assert.Same(BindingSource.
Query
, result);
662
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
683
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
704
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
724
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
745
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
766
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
787
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
893
Assert.Same(BindingSource.
Query
, bindingInfo.BindingSource);
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1410
public BindingSource BindingSource { get { return BindingSource.
Query
; } }
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
222
.Returns<BindingSource>(source => source == BindingSource.
Query
? originalValueProvider.Object : null);
1358
public BindingSource BindingSource { get { return BindingSource.
Query
; } }
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
221
.Returns<BindingSource>(source => source == BindingSource.
Query
? originalValueProvider.Object : null);
1533
public BindingSource BindingSource { get { return BindingSource.
Query
; } }
ModelBinding\BindingSourceValueProviderTest.cs (4)
39
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
53
var valueProvider = new TestableBindingSourceValueProvider(BindingSource.
Query
);
66
var valueProvider = new TestableBindingSourceValueProvider(BindingSource.
Query
);
69
var result = valueProvider.Filter(BindingSource.
Query
);
ModelBinding\CompositeValueProviderTest.cs (2)
19
var provider = GetBindingSourceValueProvider(BindingSource.
Query
, BackingStore, culture: null);
22
BindingSource.
Query
.Id,
ModelBinding\DefaultModelBindingContextTest.cs (4)
76
new BindingInfo() { BindingSource = BindingSource.
Query
},
92
.BindingDetails(b => b.BindingSource = BindingSource.
Query
);
128
new BindingInfo() { BindingSource = BindingSource.
Query
},
174
BindingSource.
Query
,
ModelBinding\EnumerableValueProviderTest.cs (17)
33
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, backingStore, culture: null);
46
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
64
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
74
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
94
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
107
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
129
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
147
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
161
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture);
176
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture);
194
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture);
212
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, backingStore, culture);
225
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, BackingStore, culture: null);
242
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, store, culture: null);
255
var provider = GetBindingSourceValueProvider(BindingSource.
Query
, BackingStore, culture: null);
258
BindingSource.
Query
.Id,
275
var provider = GetBindingSourceValueProvider(BindingSource.
Query
, BackingStore, culture: null);
ModelBinding\FormValueProviderTest.cs (1)
23
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, values, culture);
ModelBinding\JQueryFormValueProviderTest.cs (2)
41
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, store, culture: null);
61
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, values, culture);
ModelBinding\JQueryQueryStringValueProviderTest.cs (1)
44
var valueProvider = GetEnumerableValueProvider(BindingSource.
Query
, store, culture: null);
ModelBinding\Metadata\BindingSourceTest.cs (6)
18
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
23
() => BindingSource.
Query
.CanAcceptDataFrom(bindingSource),
37
BindingSource.
Query
,
57
var result = BindingSource.
Query
.CanAcceptDataFrom(BindingSource.
Query
);
94
var result = BindingSource.
Query
.CanAcceptDataFrom(BindingSource.Path);
ModelBinding\Metadata\CompositeBindingSourceTest.cs (5)
15
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
19
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
37
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
41
var result = composite.CanAcceptDataFrom(BindingSource.
Query
);
52
bindingSources: new BindingSource[] { BindingSource.
Query
, BindingSource.Form },
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (2)
112
new BindingSourceModelBinderAttribute(BindingSource.
Query
),
136
new BindingSourceModelBinderAttribute(BindingSource.
Query
),
ModelBinding\Metadata\ModelBinderAttributeTest.cs (2)
65
Assert.Equal(BindingSource.
Query
, source);
70
public override BindingSource BindingSource => BindingSource.
Query
;
ModelBinding\RouteValueProviderTests.cs (15)
20
var provider = new RouteValueProvider(BindingSource.
Query
, values);
37
var provider = new RouteValueProvider(BindingSource.
Query
, values);
55
var provider = new RouteValueProvider(BindingSource.
Query
, values);
72
var provider = new RouteValueProvider(BindingSource.
Query
, values, new CultureInfo("de-CH"));
91
var provider = new RouteValueProvider(BindingSource.
Query
, values);
108
var provider = new RouteValueProvider(BindingSource.
Query
, values);
126
var provider = new RouteValueProvider(BindingSource.
Query
, values, culture);
148
var valueProvider = new RouteValueProvider(BindingSource.
Query
, values);
169
var valueProvider = new RouteValueProvider(BindingSource.
Query
, values);
187
var valueProvider = new RouteValueProvider(BindingSource.
Query
, values);
204
var provider = new RouteValueProvider(BindingSource.
Query
, values);
221
var provider = new RouteValueProvider(BindingSource.
Query
, values);
235
var provider = new RouteValueProvider(BindingSource.
Query
, values);
238
BindingSource.
Query
.Id,
256
var provider = new RouteValueProvider(BindingSource.
Query
, values);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ApiExplorerTest.cs (3)
1004
Assert.Equal(BindingSource.
Query
.Id, i.Source);
1076
Assert.Equal(BindingSource.
Query
.Id, customerId.Source);
1096
Assert.Equal(BindingSource.
Query
.Id, shippingInstructions.Source);
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
ModelPrefixSelectionIntegrationTest.cs (3)
77
BindingSource = BindingSource.
Query
,
165
BindingSource = BindingSource.
Query
,
214
BindingSource = BindingSource.
Query
,
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
355
Assert.Equal(BindingSource.
Query
, property.BindingInfo.BindingSource);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
345
|| bindingSource == BindingSource.
Query