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)
1389Assert.Same(BindingSource.Query, parameter.Source); 1585Assert.Same(BindingSource.Query, id.Source); 1604Assert.Same(BindingSource.Query, id.Source); 1623Assert.Same(BindingSource.Query, id.Source); 1642Assert.Same(BindingSource.Query, id.Source); 1661Assert.Same(BindingSource.Query, id.Source); 1680Assert.Same(BindingSource.Query, id.Source); 1699Assert.Same(BindingSource.Query, id.Source); 1718Assert.Same(BindingSource.Query, id.Source); 1722Assert.Same(BindingSource.Query, product.Source); 1754Assert.Same(BindingSource.Query, comments.Source); 1785Assert.Same(BindingSource.Query, price.Source); 1809Assert.Same(BindingSource.Query, quantity.Source); 1813Assert.Same(BindingSource.Query, productId.Source); 1817Assert.Same(BindingSource.Query, productPrice.Source); 1840Assert.Same(BindingSource.Query, id.Source); 1844Assert.Same(BindingSource.Query, name.Source); 1871Assert.Same(BindingSource.Query, id.Source); 1875Assert.Same(BindingSource.Query, name.Source); 1894Assert.Same(BindingSource.Query, c.Source); 1912Assert.Same(BindingSource.Query, products.Source); 1953Assert.Same(BindingSource.Query, id.Source); 1957Assert.Same(BindingSource.Query, name.Source); 1998Assert.Same(BindingSource.Query, name.Source); 2073Source = BindingSource.Query, 2174Source = BindingSource.Query, 2197Source = 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)
1004Assert.Equal(BindingSource.Query.Id, i.Source); 1076Assert.Equal(BindingSource.Query.Id, customerId.Source); 1096Assert.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)
345|| bindingSource == BindingSource.Query