542 writes to Name
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
207Name = name,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2317Name = property.Name, 2335Name = parameter.Name,
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
78Name = parameterModel.ParameterName, 92Name = propertyModel.PropertyName,
Microsoft.AspNetCore.Mvc.Core.Test (42)
Controllers\ControllerBinderDelegateProviderTest.cs (27)
36Name = "foo", 92Name = nameof(TestController.RequiredButBindNeverProperty), 147Name = "foo", 189Name = "foo", 231Name = "foo", 282Name = "foo", 332Name = "foo", 380Name = "foo", 430Name = "foo", 478Name = nameof(TestController.ValidatedProperty), 526Name = nameof(TestController.ValidatedProperty), 573Name = nameof(TestController.StringProperty), 622Name = nameof(TestController.StringProperty), 661Name = nameof(TestController.CollectionProperty), 701Name = nameof(TestController.NonNullableProperty), 742Name = "NullableProperty", 783Name = "test-parameter", 796Name = nameof(TestController.NullableProperty), 846Name = "test-parameter", 859Name = nameof(TestController.NullableProperty), 955Name = propertyName, 1013Name = keyValuePair.Key, 1086Name = "accountId", 1091Name = "transferInfo", 1103Name = "transferInfo", 1112Name = "accountId", 1208Parameters = new[] { new ParameterDescriptor { Name = "name", ParameterType = typeof(string) } },
Infrastructure\ControllerActionInvokerTest.cs (2)
1395Name = "value", 1663Name = kvp.Key,
ModelBinding\ParameterBinderTest.cs (13)
73new ParameterDescriptor { Name = "myParam", ParameterType = typeof(Person) }, 111new ParameterDescriptor { Name = "myParam", ParameterType = typeof(Person) }, 134Name = string.Empty, 143Name = string.Empty, 249new ParameterDescriptor { Name = "myParam", ParameterType = typeof(Person) }, 290new ParameterDescriptor { Name = "myParam", ParameterType = typeof(Person) }, 312Name = parameter.Name, 367Name = parameter.Name, 422Name = property.Name, 476Name = property.Name, 529Name = "patchDocument", 588Name = "patchDocument", 660Name = "identifier",
Microsoft.AspNetCore.Mvc.IntegrationTests (476)
ActionParametersIntegrationTest.cs (22)
40Name = "prefix", 87Name = "prefix", 133Name = "prefix", 181Name = "prefix", 217Name = "Address", 262Name = "Address", 308Name = "Address", 353Name = "Address", 394Name = "p", 427Name = "p", 455Name = "p", 490Name = "p" 513Name = "p" 547Name = "p", 580Name = "p", 612Name = "prefix", 638Name = BindingAndValidationController.BindNeverParamInfo.Name, 671Name = ParameterWithValidateNever.ValidateNeverParameterInfo.Name, 713Name = BindingAndValidationController.BindRequiredParamInfo.Name, 766Name = parameterInfo.Name, 811Name = parameterInfo.Name, 855Name = parameterInfo.Name,
ArrayModelBinderIntegrationTest.cs (10)
20Name = "parameter", 60Name = "parameter", 104Name = "parameter", 144Name = "parameter", 179Name = "parameter", 220Name = "parameter", 265Name = "parameter", 306Name = "parameter", 343Name = "parameter", 383Name = "parameter",
BinderTypeBasedModelBinderIntegrationTest.cs (7)
21Name = "Parameter1", 55Name = "Parameter1", 92Name = "Parameter1", 159Name = "Parameter1", 211Name = "Parameter1", 248Name = "Parameter1", 284Name = "Parameter1",
BindingSourceMetadataProviderIntegrationTest.cs (2)
29Name = "Parameter1", 83Name = "Parameter1",
BindPropertyIntegrationTest.cs (7)
30Name = "parameter", 57Name = "parameter", 84Name = "parameter", 109Name = nameof(TestController.BindNeverProp), 145Name = nameof(TestController.BindRequiredProp), 193Name = propertyInfo.Name, 264Name = propertyName,
BodyValidationIntegrationTests.cs (19)
25Name = "Parameter1", 67Name = "Parameter1", 100Name = "Parameter1", 150Name = "Parameter1", 191Name = "Parameter1", 231Name = "Parameter1", 267Name = "Parameter1", 312Name = "Parameter1", 360Name = "Parameter1", 401Name = "Parameter1", 459Name = "Parameter1", 516Name = "Parameter1", 565Name = "Parameter1", 609Name = "Parameter1", 654Name = "Parameter1", 711Name = "param-name", 770Name = "param-name", 830Name = "parameter-name", 876Name = "parameter-name",
ByteArrayModelBinderIntegrationTest.cs (3)
26Name = "Parameter1", 76Name = "Parameter1", 109Name = "Parameter1",
CancellationTokenModelBinderIntegrationTest.cs (3)
23Name = "Parameter1", 63Name = "Parameter1", 98Name = "Parameter1",
CollectionModelBinderIntegrationTest.cs (23)
26Name = "parameter", 70Name = "parameter", 110Name = "parameter", 142Name = "parameter", 182Name = "parameter", 218Name = "parameter", 255Name = "parameter", 293Name = "parameter", 348Name = "parameter", 403Name = "parameter", 454Name = "parameter", 498Name = "parameter", 549Name = "parameter", 591Name = "parameter", 649Name = "parameter", 696Name = "parameter", 939Name = "parameter", 980Name = "parameter", 1008Name = "parameter", 1065Name = "parameter", 1104Name = "parameter", 1132Name = "parameter", 1181Name = "parameter",
ComplexRecordIntegrationTest.cs (78)
37Name = "parameter", 87Name = "parameter", 137Name = "parameter", 191Name = "parameter", 242Name = "parameter", 291Name = "parameter", 339Name = "parameter", 392Name = "parameter", 444Name = "parameter", 496Name = "parameter", 549Name = "parameter", 602Name = "parameter", 653Name = "parameter", 710Name = "parameter", 764Name = "parameter", 820Name = "parameter", 875Name = "parameter", 922Name = "parameter", 967Name = "parameter", 1023Name = "parameter", 1078Name = "parameter", 1125Name = "parameter", 1170Name = "parameter", 1226Name = "parameter", 1281Name = "parameter", 1328Name = "parameter", 1381Name = "p", 1488Name = "p", 1595Name = "p", 1704Name = "parameter", 1760Name = "parameter", 1817Name = "p", 1909Name = "parameter", 1959Name = "parameter", 2015Name = "parameter", 2064Name = "parameter", 2118Name = "parameter", 2172Name = "parameter", 2232Name = "parameter", 2280Name = "parameter", 2332Name = "parameter", 2380Name = "parameter", 2428Name = "parameter", 2480Name = "parameter", 2529Name = "parameter", 2583Name = "parameter", 2644Name = "parameter-name", 2693Name = "parameter-name", 2748Name = "parameter-name", 2803Name = "parameter-name", 2859Name = "parameter", 2904Name = "parameter", 2972Name = "parameter", 3046Name = "parameter", 3111Name = "parameter", 3162Name = "parameter", 3234Name = "parameter", 3313Name = "parameter", 3340Name = "parameter", 3381Name = "parameter", 3417Name = "parameter", 3444Name = "parameter", 3487Name = "parameter", 3530Name = "parameter", 3573Name = "parameter", 3624Name = "parameter", 3670Name = "parameter", 3721Name = "parameter", 3764Name = "parameter", 3810Name = "parameter", 3853Name = "parameter", 3897Name = "parameter", 3942Name = "parameter", 3986Name = "parameter", 4027Name = "parameter", 4070Name = "parameter", 4115Name = "parameter", 4160Name = "parameter",
ComplexTypeIntegrationTestBase.cs (63)
34Name = "parameter", 74Name = "parameter", 124Name = "parameter", 174Name = "parameter", 225Name = "parameter", 274Name = "parameter", 332Name = "parameter", 385Name = "parameter", 437Name = "parameter", 499Name = "parameter", 552Name = "parameter", 605Name = "parameter", 656Name = "parameter", 713Name = "parameter", 772Name = "parameter", 828Name = "parameter", 883Name = "parameter", 930Name = "parameter", 980Name = "parameter", 1036Name = "parameter", 1091Name = "parameter", 1138Name = "parameter", 1188Name = "parameter", 1244Name = "parameter", 1299Name = "parameter", 1346Name = "parameter", 1417Name = "p", 1524Name = "p", 1631Name = "p", 1745Name = "parameter", 1801Name = "parameter", 1856Name = "parameter", 1905Name = "parameter", 1957Name = "p", 2056Name = "parameter", 2113Name = "parameter", 2168Name = "parameter", 2226Name = "parameter", 2280Name = "parameter", 2334Name = "parameter", 2398Name = "parameter", 2446Name = "parameter", 2498Name = "parameter", 2550Name = "parameter", 2598Name = "parameter", 2650Name = "parameter", 2702Name = "parameter", 2756Name = "parameter", 2823Name = "parameter-name", 2872Name = "parameter-name", 2939Name = "parameter-name", 2994Name = "parameter-name", 3052Name = "parameter", 3108Name = "parameter", 3180Name = "parameter", 3261Name = "parameter", 3333Name = "parameter", 3384Name = "parameter", 3463Name = "parameter", 3548Name = "parameter", 3585Name = "parameter", 3632Name = "parameter", 3686Name = "parameter",
DictionaryModelBinderIntegrationTest.cs (31)
24Name = "parameter", 64Name = "parameter", 101Name = "parameter", 151Name = "parameter", 192Name = "parameter", 343Name = "parameter", 380Name = "parameter", 404Name = "parameter", 439Name = "parameter", 509Name = "parameter", 554Name = "parameter", 592Name = "parameter", 627Name = "parameter", 662Name = "parameter", 703Name = "parameter", 747Name = "parameter", 786Name = "parameter", 826Name = "parameter", 861Name = "parameter", 913Name = "parameter", 951Name = "parameter", 985Name = "parameter", 1024Name = "parameter", 1063Name = "parameter", 1167Name = "parameter", 1209Name = "parameter", 1238Name = "parameter", 1292Name = "parameter", 1367Name = "parameter", 1403Name = "parameter", 1445Name = "parameter",
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
30Name = "Parameter1", 98Name = "Parameter1",
FormCollectionModelBindingIntegrationTest.cs (3)
33Name = "Parameter1", 80Name = "Parameter1", 125Name = "Parameter1",
FormFileModelBindingIntegrationTest.cs (22)
33Name = "Parameter1", 81Name = "Parameter1", 132Name = "Parameter1", 190Name = "Parameter1", 277Name = "fleet", 342Name = "fleet", 408Name = "Parameter1", 478Name = "Parameter1", 524Name = "Parameter1", 567Name = "Parameter1", 613Name = "Parameter1", 662Name = "Parameter1", 702Name = "p", 761Name = "house", 827Name = "house", 888Name = "house", 927Name = "house", 989Name = "p", 1043Name = "p", 1094Name = "p", 1139Name = "p", 1198Name = "p",
GenericModelBinderIntegrationTest.cs (14)
27Name = "parameter", 66Name = "parameter", 104Name = "parameter", 203Name = "parameter", 231Name = "parameter", 265Name = "parameter", 310Name = "parameter", 355Name = "parameter", 390Name = "parameter", 434Name = "parameter", 478Name = "parameter", 513Name = "parameter", 562Name = "parameter", 610Name = "parameter",
HeaderModelBinderIntegrationTest.cs (7)
33Name = "Parameter1", 72Name = "Parameter1", 117Name = "Parameter1", 163Name = "Parameter1", 210Name = "Parameter1", 266Name = "Parameter1", 311Name = "Parameter1",
JQueryFormatModelBindingIntegrationTest.cs (2)
20Name = "parameter", 61Name = "parameter",
KeyValuePairModelBinderIntegrationTest.cs (13)
20Name = "parameter", 60Name = "parameter", 115Name = "parameter", 147Name = "parameter", 202Name = "parameter", 234Name = "parameter", 278Name = "parameter", 318Name = "parameter", 356Name = "parameter", 397Name = "parameter", 442Name = "parameter", 483Name = "parameter", 519Name = "p",
ModelPrefixSelectionIntegrationTest.cs (5)
28Name = "parameter", 73Name = "parameter", 122Name = "parameter", 161Name = "parameter", 210Name = "parameter",
NullableReferenceTypeIntegrationTest.cs (4)
27Name = "Parameter1", 75Name = "Parameter1", 114Name = "Parameter1", 161Name = "param1",
ServicesModelBinderIntegrationTest.cs (11)
20Name = "Parameter1", 58Name = "ControllerProperty", 94Name = "ControllerProperty", 130Name = "ControllerProperty", 166Name = "ControllerProperty", 203Name = "ControllerProperty", 236Name = "ControllerProperty", 272Name = "ControllerProperty", 305Name = "ControllerProperty", 359Name = "parameter-name", 397Name = "parameter-name",
SimpleTypeModelBinderIntegrationTest.cs (17)
25Name = "Parameter1", 73Name = "Parameter1", 117Name = "Parameter1", 161Name = "Parameter1", 195Name = "Parameter1", 239Name = "Parameter1", 284Name = "Parameter1", 323Name = "Parameter1", 367Name = "Parameter1", 435Name = "Parameter1", 478Name = "Parameter1", 538Name = "Parameter1", 575Name = "Parameter1", 613Name = "Parameter1", 667Name = "Parameter1", 712Name = "Parameter1", 756Name = "Parameter1",
ValidationIntegrationTests.cs (54)
48Name = "accountId", 53Name = "transferInfo", 65Name = "transferInfo", 74Name = "accountId", 170Name = "parameter", 207Name = "parameter", 258Name = "parameter", 296Name = "parameter", 349Name = "parameter", 387Name = "parameter", 441Name = "parameter", 479Name = "parameter", 528Name = "parameter", 565Name = "parameter", 629Name = "parameter", 653Name = "parameter", 686Name = "parameter", 723Name = "parameter", 774Name = "parameter", 811Name = "parameter", 851Name = "parameter", 909Name = "parameter", 946Name = "parameter", 1016Name = "parameter", 1053Name = "parameter", 1104Name = "parameter", 1141Name = "parameter", 1181Name = "parameter", 1221Name = "parameter", 1261Name = "parameter", 1352Name = "parameter", 1401Name = "parameter", 1440Name = "parameter", 1473Name = "parameter", 1504Name = "parameter", 1573Name = "parameter", 1610Name = "parameter", 1663Name = "parameter", 1727Name = "parameter", 1779Name = "Parameter1", 1834Name = "cancellationToken", 1870Name = "Parameter1", 1916Name = "Parameter1", 1970Name = "parameter", 2030Name = parameterInfo.Name, 2082Name = parameterInfo.Name, 2152Name = parameterInfo.Name, 2214Name = "parameter", 2261Name = "parameter", 2318Name = propertyInfo.Name, 2372Name = propertyInfo.Name, 2424Name = "parameter", 2476Name = parameterInfo.Name, 2527Name = parameterInfo.Name,
ValidationWithRecordIntegrationTests.cs (54)
40Name = "accountId", 45Name = "transferInfo", 57Name = "transferInfo", 66Name = "accountId", 158Name = "parameter", 195Name = "parameter", 239Name = "parameter", 277Name = "parameter", 321Name = "parameter", 359Name = "parameter", 406Name = "parameter", 444Name = "parameter", 487Name = "parameter", 524Name = "parameter", 569Name = "parameter", 606Name = "parameter", 650Name = "parameter", 687Name = "parameter", 727Name = "parameter", 778Name = "parameter", 815Name = "parameter", 878Name = "parameter", 915Name = "parameter", 962Name = "parameter", 999Name = "parameter", 1039Name = "parameter", 1073Name = "parameter", 1113Name = "parameter", 1196Name = "parameter", 1245Name = "parameter", 1284Name = "parameter", 1317Name = "parameter", 1381Name = "parameter", 1418Name = "parameter", 1469Name = "parameter", 1530Name = "parameter", 1582Name = "Parameter1", 1637Name = "cancellationToken", 1673Name = "Parameter1", 1719Name = "Parameter1", 1769Name = "parameter", 1821Name = parameterInfo.Name, 1873Name = parameterInfo.Name, 1943Name = parameterInfo.Name, 2005Name = "parameter", 2052Name = "parameter", 2109Name = propertyInfo.Name, 2160Name = propertyInfo.Name, 2212Name = "parameter", 2262Name = parameterInfo.Name, 2314Name = "parameter", 2353Name = "parameter", 2394Name = "parameter", 2429Name = "parameter",
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
109Name = parameterModel.ParameterName, 136Name = propertyModel.PropertyName,
Microsoft.AspNetCore.Mvc.RazorPages.Test (15)
Infrastructure\ExecutorFactoryTest.cs (1)
211Name = p.Name,
Infrastructure\PageBinderFactoryTest.cs (14)
188Name = nameof(PageWithProperty.Id), 194Name = nameof(PageWithProperty.RouteDifferentValue), 200Name = nameof(PageWithProperty.PropertyWithNoValue), 246Name = nameof(PageModelWithProperty.Id), 252Name = nameof(PageModelWithProperty.RouteDifferentValue), 258Name = nameof(PageModelWithProperty.PropertyWithNoValue), 312Name = nameof(PageModelWithDefaultValue.PropertyWithDefaultValue), 360Name = nameof(PageModelWithSupportsGetProperty.SupportsGet), 371Name = nameof(PageModelWithSupportsGetProperty.Default), 420Name = nameof(PageModelWithSupportsGetProperty.SupportsGet), 430Name = nameof(PageModelWithSupportsGetProperty.Default), 481Name = nameof(PageModelWithBindNeverProperty.BindNeverProperty), 528Name = nameof(PageModelWithValidation.Validated), 774Name = parameterInfo.Name
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
206Name = property.Name, 242Name = parameter.Name,
57 references to Name
FormatterWebSite (2)
ValidateBodyParameterAttribute.cs (2)
24var parameterBindingErrors = context.ModelState[bodyParameter.Name]?.Errors ?? 31ParameterName = bodyParameter.Name,
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (3)
191propertyName: actionParameter.Name); 203propertyName: actionParameter.Name); 208propertyName: actionParameter.Name);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
816Assert.Equal("name", nameParam.ParameterDescriptor.Name); 1513Assert.Equal(expectedName, parameter.ParameterDescriptor.Name);
Microsoft.AspNetCore.Mvc.Core (10)
Controllers\ControllerBinderDelegateProvider.cs (2)
84arguments[parameter.Name] = result.Model; 178var metadata = modelMetadataProvider.GetMetadataForProperty(controllerType, property.Name);
ModelBinding\ParameterBinder.cs (3)
112parameter.Name); 121else if (modelBindingContext.ValueProvider.ContainsPrefix(parameter.Name)) 124modelBindingContext.ModelName = parameter.Name;
ModelBinding\ParameterBinder.Log.cs (5)
49AttemptingToBindParameter(logger, parameter.Name, modelMetadata.ModelType); 95DoneAttemptingToBindParameter(logger, parameter.Name, modelMetadata.ModelType); 142AttemptingToValidateParameter(logger, parameter.Name, modelMetadata.ModelType); 192DoneAttemptingToValidateParameter(logger, parameter.Name, modelMetadata.ModelType); 239ParameterBinderRequestPredicateShortCircuitOfParameter(logger, parameter.Name);
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
53Assert.Equal("BoundProperty", property.Name);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (13)
129Assert.Equal("id", id.Name); 146var id = Assert.Single(main.Parameters, p => p.Name == "id"); 148Assert.Equal("id", id.Name); 152var entity = Assert.Single(main.Parameters, p => p.Name == "entity"); 154Assert.Equal("entity", entity.Name); 171var id = Assert.Single(main.Parameters, p => p.Name == "id"); 173Assert.Equal("id", id.Name); 177var upperCaseId = Assert.Single(main.Parameters, p => p.Name == "ID"); 179Assert.Equal("ID", upperCaseId.Name); 183var pascalCaseId = Assert.Single(main.Parameters, p => p.Name == "Id"); 185Assert.Equal("Id", pascalCaseId.Name); 206Assert.Equal("entity", entity.Name); 227Assert.Equal("entity", entity.Name);
Controllers\ControllerBinderDelegateProviderTest.cs (2)
1154if (descriptor.Name == "accountId") 1158else if (descriptor.Name == "transferInfo")
Microsoft.AspNetCore.Mvc.IntegrationTests (16)
ActionParametersIntegrationTest.cs (7)
644request.QueryString = QueryString.Create(parameter.Name, "123"); 721request.QueryString = QueryString.Create(parameter.Name, input.Value.ToString(CultureInfo.InvariantCulture)); 774request.QueryString = QueryString.Create(parameter.Name, input); 799Assert.Contains(displayName ?? parameter.Name, message); 861var key = ModelNames.CreatePropertyModelName(parameter.Name, nameof(ModelWithIValidatableObject.FirstName)); 881var entry = modelState[parameter.Name]; 886entry = modelState[ModelNames.CreatePropertyModelName(parameter.Name, nameof(ModelWithIValidatableObject.FirstName))];
BindPropertyIntegrationTest.cs (9)
117request.QueryString = new QueryString($"?{parameter.Name}=Joey"); 122.GetMetadataForProperty(typeof(TestController), parameter.Name); 156request.QueryString = new QueryString($"?{parameter.Name}={input.Value}"); 162.GetMetadataForProperty(typeof(TestController), parameter.Name); 212request.QueryString = new QueryString($"?{propertyDescriptor.Name}={input.Value}"); 220.GetMetadataForProperty(typeof(TestPage), propertyDescriptor.Name); 275request.QueryString = new QueryString($"?{parameter.Name}={input}"); 281.GetMetadataForProperty(typeof(TestController), parameter.Name); 296Assert.Contains(displayName ?? parameter.Name, message);
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageBinderFactory.cs (2)
33var metadata = modelMetadataProvider.GetMetadataForProperty(handlerType, property.Name); 157arguments[parameter.Name] = result.Model;
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (4)
93Assert.Equal(pageApplicationModel.HandlerProperties.Select(p => p.PropertyName), actual.BoundProperties.Select(p => p.Name)); 290Assert.Equal(parameterModel1.ParameterName, p.Name); 336Assert.Same(propertyModel.PropertyName, p.Name); 385Assert.Same(propertyModel1.PropertyName, p.Name);
Infrastructure\PageBinderFactoryTest.cs (1)
832if (_args.TryGetValue(parameter.Name, out var result))
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
512var groupedFormParameters = formParameters.GroupBy(parameter => parameter.ParameterDescriptor.Name);