136 references to Query
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
161Source = BindingSource.Query,
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingSource.cs (1)
199return bindingSource == Form || bindingSource == Path || bindingSource == Query;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
27Assert.Same(BindingSource.Query, bindingInfo.BindingSource);
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
EndpointMetadataApiDescriptionProvider.cs (3)
263return (BindingSource.Query, queryAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 300return (BindingSource.Query, parameter.Name ?? string.Empty, false, displayType); 312return (BindingSource.Query, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (34)
DefaultApiDescriptionProviderTest.cs (27)
1419Assert.Same(BindingSource.Query, parameter.Source); 1615Assert.Same(BindingSource.Query, id.Source); 1634Assert.Same(BindingSource.Query, id.Source); 1653Assert.Same(BindingSource.Query, id.Source); 1672Assert.Same(BindingSource.Query, id.Source); 1691Assert.Same(BindingSource.Query, id.Source); 1710Assert.Same(BindingSource.Query, id.Source); 1729Assert.Same(BindingSource.Query, id.Source); 1748Assert.Same(BindingSource.Query, id.Source); 1752Assert.Same(BindingSource.Query, product.Source); 1784Assert.Same(BindingSource.Query, comments.Source); 1815Assert.Same(BindingSource.Query, price.Source); 1839Assert.Same(BindingSource.Query, quantity.Source); 1843Assert.Same(BindingSource.Query, productId.Source); 1847Assert.Same(BindingSource.Query, productPrice.Source); 1870Assert.Same(BindingSource.Query, id.Source); 1874Assert.Same(BindingSource.Query, name.Source); 1901Assert.Same(BindingSource.Query, id.Source); 1905Assert.Same(BindingSource.Query, name.Source); 1924Assert.Same(BindingSource.Query, c.Source); 1942Assert.Same(BindingSource.Query, products.Source); 1983Assert.Same(BindingSource.Query, id.Source); 1987Assert.Same(BindingSource.Query, name.Source); 2028Assert.Same(BindingSource.Query, name.Source); 2103Source = BindingSource.Query, 2204Source = BindingSource.Query, 2227Source = BindingSource.Query,
EndpointMetadataApiDescriptionProviderTest.cs (7)
537Assert.Equal(BindingSource.Query, param.Source); 634Assert.Equal(BindingSource.Query, barParam.Source); 664Assert.Equal(BindingSource.Query, param.Source); 754Assert.Equal(BindingSource.Query, barParam.Source); 793Assert.Equal(BindingSource.Query, fooParam.Source); 799Assert.Equal(BindingSource.Query, barParam.Source); 812Assert.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> 131return BindingSource.Query;
FromQueryAttribute.cs (1)
31public BindingSource BindingSource => BindingSource.Query;
ModelBinding\JQueryQueryStringValueProviderFactory.cs (1)
24BindingSource.Query,
ModelBinding\QueryStringValueProviderFactory.cs (1)
25BindingSource.Query,
Microsoft.AspNetCore.Mvc.Core.Test (83)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
56Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource);
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
81Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource); 133Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource); 186Assert.Equal(BindingSource.Query, parameter.BindingInfo.BindingSource); 306Assert.Equal(BindingSource.Query, parameter.BindingInfo.BindingSource);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (12)
238Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 431Assert.Same(BindingSource.Query, result); 491Assert.Same(BindingSource.Query, result); 546Assert.Same(BindingSource.Query, result); 662Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 683Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 704Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 724Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 745Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 766Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 787Assert.Same(BindingSource.Query, bindingInfo.BindingSource); 893Assert.Same(BindingSource.Query, bindingInfo.BindingSource);
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1410public BindingSource BindingSource { get { return BindingSource.Query; } }
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
222.Returns<BindingSource>(source => source == BindingSource.Query ? originalValueProvider.Object : null); 1358public BindingSource BindingSource { get { return BindingSource.Query; } }
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
221.Returns<BindingSource>(source => source == BindingSource.Query ? originalValueProvider.Object : null); 1533public BindingSource BindingSource { get { return BindingSource.Query; } }
ModelBinding\BindingSourceValueProviderTest.cs (4)
39bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form }, 53var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); 66var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); 69var result = valueProvider.Filter(BindingSource.Query);
ModelBinding\CompositeValueProviderTest.cs (2)
19var provider = GetBindingSourceValueProvider(BindingSource.Query, BackingStore, culture: null); 22BindingSource.Query.Id,
ModelBinding\DefaultModelBindingContextTest.cs (4)
76new BindingInfo() { BindingSource = BindingSource.Query }, 92.BindingDetails(b => b.BindingSource = BindingSource.Query); 128new BindingInfo() { BindingSource = BindingSource.Query }, 174BindingSource.Query,
ModelBinding\EnumerableValueProviderTest.cs (17)
33var valueProvider = GetEnumerableValueProvider(BindingSource.Query, backingStore, culture: null); 46var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 64var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 74var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 94var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 107var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 129var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 147var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 161var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture); 176var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture); 194var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture); 212var valueProvider = GetEnumerableValueProvider(BindingSource.Query, backingStore, culture); 225var valueProvider = GetEnumerableValueProvider(BindingSource.Query, BackingStore, culture: null); 242var valueProvider = GetEnumerableValueProvider(BindingSource.Query, store, culture: null); 255var provider = GetBindingSourceValueProvider(BindingSource.Query, BackingStore, culture: null); 258BindingSource.Query.Id, 275var provider = GetBindingSourceValueProvider(BindingSource.Query, BackingStore, culture: null);
ModelBinding\FormValueProviderTest.cs (1)
23var valueProvider = GetEnumerableValueProvider(BindingSource.Query, values, culture);
ModelBinding\JQueryFormValueProviderTest.cs (2)
41var valueProvider = GetEnumerableValueProvider(BindingSource.Query, store, culture: null); 61var valueProvider = GetEnumerableValueProvider(BindingSource.Query, values, culture);
ModelBinding\JQueryQueryStringValueProviderTest.cs (1)
44var valueProvider = GetEnumerableValueProvider(BindingSource.Query, store, culture: null);
ModelBinding\Metadata\BindingSourceTest.cs (6)
18bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form }, 23() => BindingSource.Query.CanAcceptDataFrom(bindingSource), 37BindingSource.Query, 57var result = BindingSource.Query.CanAcceptDataFrom(BindingSource.Query); 94var result = BindingSource.Query.CanAcceptDataFrom(BindingSource.Path);
ModelBinding\Metadata\CompositeBindingSourceTest.cs (5)
15bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form }, 19bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form }, 37bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form }, 41var result = composite.CanAcceptDataFrom(BindingSource.Query); 52bindingSources: new BindingSource[] { BindingSource.Query, BindingSource.Form },
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (2)
112new BindingSourceModelBinderAttribute(BindingSource.Query), 136new BindingSourceModelBinderAttribute(BindingSource.Query),
ModelBinding\Metadata\ModelBinderAttributeTest.cs (2)
65Assert.Equal(BindingSource.Query, source); 70public override BindingSource BindingSource => BindingSource.Query;
ModelBinding\RouteValueProviderTests.cs (15)
20var provider = new RouteValueProvider(BindingSource.Query, values); 37var provider = new RouteValueProvider(BindingSource.Query, values); 55var provider = new RouteValueProvider(BindingSource.Query, values); 72var provider = new RouteValueProvider(BindingSource.Query, values, new CultureInfo("de-CH")); 91var provider = new RouteValueProvider(BindingSource.Query, values); 108var provider = new RouteValueProvider(BindingSource.Query, values); 126var provider = new RouteValueProvider(BindingSource.Query, values, culture); 148var valueProvider = new RouteValueProvider(BindingSource.Query, values); 169var valueProvider = new RouteValueProvider(BindingSource.Query, values); 187var valueProvider = new RouteValueProvider(BindingSource.Query, values); 204var provider = new RouteValueProvider(BindingSource.Query, values); 221var provider = new RouteValueProvider(BindingSource.Query, values); 235var provider = new RouteValueProvider(BindingSource.Query, values); 238BindingSource.Query.Id, 256var provider = new RouteValueProvider(BindingSource.Query, values);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ApiExplorerTest.cs (3)
1009Assert.Equal(BindingSource.Query.Id, i.Source); 1081Assert.Equal(BindingSource.Query.Id, customerId.Source); 1101Assert.Equal(BindingSource.Query.Id, shippingInstructions.Source);
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
ModelPrefixSelectionIntegrationTest.cs (3)
77BindingSource = BindingSource.Query, 165BindingSource = BindingSource.Query, 214BindingSource = BindingSource.Query,
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
355Assert.Equal(BindingSource.Query, property.BindingInfo.BindingSource);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
350|| bindingSource == BindingSource.Query