91 instantiations of FromQueryAttribute
ApiExplorerWebSite (3)
Controllers\ApiExplorerParametersController.cs (2)
16public void SimpleParametersWithBinderMetadata([FromQuery] int i, [FromRoute] string s) 29public void ComplexModel([FromQuery] OrderDTO order)
Models\CustomerCommentsDTO.cs (1)
10[FromQuery]
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
67public ActionResult<Contact> ActionWithInferredEmptyPrefix([FromQuery] Contact contact)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\ApiRoutingController.cs (1)
24[FromQuery] string noRedaction)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateGenerator\SharedTypes.cs (4)
694[FromQuery] int Value, 695[FromQuery(Name = "customQuery")] int CustomValue, 696[property: FromQuery(Name = "anotherCustomQuery")] int? AnotherCustomValue = null); 857[FromQuery]
Microsoft.AspNetCore.Http.Microbenchmarks (4)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (4)
694[FromQuery] int Value, 695[FromQuery(Name = "customQuery")] int CustomValue, 696[property: FromQuery(Name = "anotherCustomQuery")] int? AnotherCustomValue = null); 857[FromQuery]
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
18new FromQueryAttribute { Name = "Test" },
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (24)
DefaultApiDescriptionProviderTest.cs (22)
2470private void AcceptsId_Query([FromQuery] int id) 2486private void AcceptsProductChangeDTO_Query([FromQuery] ProductChangeDTO dto) 2494private void AcceptsEmployee([FromQuery(Name = "employee")] Employee dto) 2498private void AcceptsTryParsablePrimitiveType([FromQuery] Guid id) 2502private void AcceptsTryParsableEmployee([FromQuery] TryParsableEmployee employee) 2506private void AcceptsConvertibleEmployee([FromQuery] ConvertibleEmployee employee) 2512private void AcceptsNullableTryParsableEmployee([FromQuery] TryParsableEmployee? employee) 2516private void AcceptsTryParsableNullablePrimitiveType([FromQuery] Guid? id) 2520private void AcceptsNullableConvertibleEmployee([FromQuery] ConvertibleEmployee? employee) 2530private void AcceptsOrderDTO_Query([FromQuery] OrderDTO dto) 2546private void AcceptsRedundantMetadata([FromQuery] RedundantMetadata r) 2574private void AcceptsMultipleProperties([FromQuery] MultipleProperties model) 2578private void AcceptsMultiplePropertiesNested([FromQuery] MultiplePropertiesContainer model) 2603public void FromQueryName([FromQuery] string name) 2680[FromQuery(Name = "managerid")] 2683[FromQuery(Name = "name")] 2738[FromQuery] 2749[FromQuery] 2755[FromQuery] 2766[FromQuery] 2774[FromQuery] 2777[FromQuery]
EndpointMetadataApiDescriptionProviderTest.cs (2)
541AssertQueryParameter<int>(GetApiDescription(([FromQuery] int foo) => { })); 542AssertQueryParameter<TryParseStringRecordStruct>(GetApiDescription(([FromQuery] TryParseStringRecordStruct foo) => { }));
Microsoft.AspNetCore.Mvc.Core.Test (17)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (2)
27BindingInfo = BindingInfo.GetBindingInfo(new object[] { new FromQueryAttribute() }), 139[FromQuery]
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
1769[FromQuery] 1779public IActionResult PostAction([FromQuery] string fromQuery, IFormFileCollection formFileCollection, string unbound) => null; 1790public IActionResult PostAction2([FromQuery] Guid fromQuery) => null;
ApplicationModels\InferParameterBindingInfoConventionTest.cs (12)
1013public IActionResult FromQuery([FromQuery] int value) => null; 1016public IActionResult FromQueryWithCustomName([FromQuery(Name = "top")] int value) => null; 1019public IActionResult FromQueryOnComplexType([FromQuery] GpsCoordinates gpsCoordinates) => null; 1022public IActionResult FromQueryOnComplexTypeWithCustomName([FromQuery(Name = "gps")] GpsCoordinates gpsCoordinates) => null; 1025public IActionResult FromQueryOnCollectionType([FromQuery] ICollection<int> value) => null; 1028public IActionResult FromQueryOnArrayType([FromQuery] int[] value) => null; 1031public IActionResult FromQueryOnArrayTypeWithCustomName([FromQuery(Name = "ids")] int[] value) => null; 1120[FromQuery] 1161[FromQuery] 1167public IActionResult SomeAction([FromQuery] TestModel test) => null; 1172[FromQuery] 1175public IActionResult SomeAction([FromQuery] List<int> test) => null;
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
BindPropertyIntegrationTest.cs (1)
191new FromQueryAttribute { Name = propertyInfo.Name },
ComplexRecordIntegrationTest.cs (1)
3707public record RecordTypesWithDifferentMetadataOnParameterAndProperty([FromQuery] string Id, string Name)
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1077[FromQuery]
Infrastructure\PageBinderFactoryTest.cs (4)
858[FromQuery] 875[FromQuery] 901[FromQuery] 918[FromQuery]
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\OpenApiGeneratorTests.cs (3)
390AssertQueryParameter(GetOpenApiOperation(([FromQuery] int foo) => { }), "integer"); 391AssertQueryParameter(GetOpenApiOperation(([FromQuery] TryParseStringRecordStruct foo) => { }), "object"); 938ValidateParameter(GetOpenApiOperation(([FromQuery(Name = "queryName")] string param) => ""), "queryName");
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (1)
647private Status GetItemStatus([FromQuery] Status status) => status;
MvcFormSample (2)
Controllers\HomeController.cs (2)
19public IActionResult Index([FromQuery] bool antiforgery = true) 25public IActionResult Index2([FromQuery] bool antiforgery = true)
Negotiate.Client (19)
Controllers\AuthTestController.cs (19)
29public async Task<IActionResult> AnonymousUnrestricted([FromQuery] string server, [FromQuery] string protocol) 49public async Task<IActionResult> AnonymousAuthorized([FromQuery] string server, [FromQuery] string protocol) 76public async Task<IActionResult> DefaultCredentialsAuthorized([FromQuery] string server, [FromQuery] string protocol) 99public async Task<IActionResult> AfterAuthUnrestrictedPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 132public async Task<IActionResult> AfterAuthUnrestrictedNonPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 165public async Task<IActionResult> AfterAuthAuthorizedNonPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 198public async Task<IActionResult> Unauthorized([FromQuery] string server, [FromQuery] string protocol) 224public async Task<IActionResult> AfterAuthUnauthorized([FromQuery] string server, [FromQuery] string protocol)
RazorPagesWebSite (3)
Pages\CustomModelTypeModel.cshtml.cs (1)
19[FromQuery(Name = nameof(Attempts))]
Pages\PropertyBinding\BindPropertiesOnModel.cs (1)
12[FromQuery]
Pages\PropertyBinding\PageModelWithPropertyBinding.cs (1)
18[FromQuery]
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
33public ActionResult<Person> ActionReturningValidationProblem([FromQuery] Address address)
4 references to FromQueryAttribute
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
98nameof(FromQueryAttribute),
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
85Assert.IsType<FromQueryAttribute>(attribute); 137Assert.IsType<FromQueryAttribute>(attribute); 190Assert.IsType<FromQueryAttribute>(attribute);