91 instantiations of FromQueryAttribute
ApiExplorerWebSite (3)
Controllers\ApiExplorerParametersController.cs (2)
16
public void SimpleParametersWithBinderMetadata([
FromQuery
] int i, [FromRoute] string s)
29
public void ComplexModel([
FromQuery
] OrderDTO order)
Models\CustomerCommentsDTO.cs (1)
10
[
FromQuery
]
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
67
public 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)
18
new
FromQueryAttribute
{ Name = "Test" },
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (24)
DefaultApiDescriptionProviderTest.cs (22)
2470
private void AcceptsId_Query([
FromQuery
] int id)
2486
private void AcceptsProductChangeDTO_Query([
FromQuery
] ProductChangeDTO dto)
2494
private void AcceptsEmployee([
FromQuery
(Name = "employee")] Employee dto)
2498
private void AcceptsTryParsablePrimitiveType([
FromQuery
] Guid id)
2502
private void AcceptsTryParsableEmployee([
FromQuery
] TryParsableEmployee employee)
2506
private void AcceptsConvertibleEmployee([
FromQuery
] ConvertibleEmployee employee)
2512
private void AcceptsNullableTryParsableEmployee([
FromQuery
] TryParsableEmployee? employee)
2516
private void AcceptsTryParsableNullablePrimitiveType([
FromQuery
] Guid? id)
2520
private void AcceptsNullableConvertibleEmployee([
FromQuery
] ConvertibleEmployee? employee)
2530
private void AcceptsOrderDTO_Query([
FromQuery
] OrderDTO dto)
2546
private void AcceptsRedundantMetadata([
FromQuery
] RedundantMetadata r)
2574
private void AcceptsMultipleProperties([
FromQuery
] MultipleProperties model)
2578
private void AcceptsMultiplePropertiesNested([
FromQuery
] MultiplePropertiesContainer model)
2603
public 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)
541
AssertQueryParameter<int>(GetApiDescription(([
FromQuery
] int foo) => { }));
542
AssertQueryParameter<TryParseStringRecordStruct>(GetApiDescription(([
FromQuery
] TryParseStringRecordStruct foo) => { }));
Microsoft.AspNetCore.Mvc.Core.Test (17)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (2)
27
BindingInfo = BindingInfo.GetBindingInfo(new object[] { new
FromQueryAttribute
() }),
139
[
FromQuery
]
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
1769
[
FromQuery
]
1779
public IActionResult PostAction([
FromQuery
] string fromQuery, IFormFileCollection formFileCollection, string unbound) => null;
1790
public IActionResult PostAction2([
FromQuery
] Guid fromQuery) => null;
ApplicationModels\InferParameterBindingInfoConventionTest.cs (12)
1013
public IActionResult FromQuery([
FromQuery
] int value) => null;
1016
public IActionResult FromQueryWithCustomName([
FromQuery
(Name = "top")] int value) => null;
1019
public IActionResult FromQueryOnComplexType([
FromQuery
] GpsCoordinates gpsCoordinates) => null;
1022
public IActionResult FromQueryOnComplexTypeWithCustomName([
FromQuery
(Name = "gps")] GpsCoordinates gpsCoordinates) => null;
1025
public IActionResult FromQueryOnCollectionType([
FromQuery
] ICollection<int> value) => null;
1028
public IActionResult FromQueryOnArrayType([
FromQuery
] int[] value) => null;
1031
public IActionResult FromQueryOnArrayTypeWithCustomName([
FromQuery
(Name = "ids")] int[] value) => null;
1120
[
FromQuery
]
1161
[
FromQuery
]
1167
public IActionResult SomeAction([
FromQuery
] TestModel test) => null;
1172
[
FromQuery
]
1175
public IActionResult SomeAction([
FromQuery
] List<int> test) => null;
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
BindPropertyIntegrationTest.cs (1)
191
new
FromQueryAttribute
{ Name = propertyInfo.Name },
ComplexRecordIntegrationTest.cs (1)
3707
public 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)
390
AssertQueryParameter(GetOpenApiOperation(([
FromQuery
] int foo) => { }), "integer");
391
AssertQueryParameter(GetOpenApiOperation(([
FromQuery
] TryParseStringRecordStruct foo) => { }), "object");
938
ValidateParameter(GetOpenApiOperation(([
FromQuery
(Name = "queryName")] string param) => ""), "queryName");
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (1)
647
private Status GetItemStatus([
FromQuery
] Status status) => status;
MvcFormSample (2)
Controllers\HomeController.cs (2)
19
public IActionResult Index([
FromQuery
] bool antiforgery = true)
25
public IActionResult Index2([
FromQuery
] bool antiforgery = true)
Negotiate.Client (19)
Controllers\AuthTestController.cs (19)
29
public async Task<IActionResult> AnonymousUnrestricted([
FromQuery
] string server, [
FromQuery
] string protocol)
49
public async Task<IActionResult> AnonymousAuthorized([
FromQuery
] string server, [
FromQuery
] string protocol)
76
public async Task<IActionResult> DefaultCredentialsAuthorized([
FromQuery
] string server, [
FromQuery
] string protocol)
99
public async Task<IActionResult> AfterAuthUnrestrictedPersist([
FromQuery
] string server, [
FromQuery
] string protocol1, [
FromQuery
] string protocol2)
132
public async Task<IActionResult> AfterAuthUnrestrictedNonPersist([
FromQuery
] string server, [
FromQuery
] string protocol1, [
FromQuery
] string protocol2)
165
public async Task<IActionResult> AfterAuthAuthorizedNonPersist([
FromQuery
] string server, [
FromQuery
] string protocol1, [
FromQuery
] string protocol2)
198
public async Task<IActionResult> Unauthorized([
FromQuery
] string server, [
FromQuery
] string protocol)
224
public 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)
33
public ActionResult<Person> ActionReturningValidationProblem([
FromQuery
] Address address)
4 references to FromQueryAttribute
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
98
nameof(
FromQueryAttribute
),
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
85
Assert.IsType<
FromQueryAttribute
>(attribute);
137
Assert.IsType<
FromQueryAttribute
>(attribute);
190
Assert.IsType<
FromQueryAttribute
>(attribute);