Implemented interface member:
property
Name
Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider.Name
15 writes to Name
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
81
[ModelBinder(typeof(TestModelBinder),
Name
= "bar")] string foo)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
102
new ModelBinderAttribute { BinderType = typeof(ComplexObjectModelBinder),
Name
= "Test" },
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (3)
1010
public IActionResult ModelBinderAttribute([ModelBinder(
Name
= "top")] int value) => null;
1070
public IActionResult ModelBinderAttributeWithExplicitModelName([ModelBinder(
Name
= "top")] int value) => null;
1076
public IActionResult ModelBinderTypeWithExplicitModelName([ModelBinder(typeof(TestModelBinder),
Name
= "foo")] string name) => null;
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (4)
64
new ModelBinderAttribute() {
Name
= "Product" },
65
new ModelBinderAttribute() {
Name
= "Order" },
88
new ModelBinderAttribute() {
Name
= "Product" },
89
new ModelBinderAttribute() {
Name
= "Order" },
ModelBinding\Metadata\ModelAttributesTest.cs (1)
332
[ModelBinder(
Name
= "Custom")]
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ComplexRecordIntegrationTest.cs (1)
2629
[ModelBinder(
Name
= "HomeAddress")]
ComplexTypeIntegrationTestBase.cs (1)
2805
[ModelBinder(
Name
= "HomeAddress")]
FormFileModelBindingIntegrationTest.cs (2)
467
[ModelBinder(
Name
= "files")]
551
[ModelBinder(
Name
= "files")]
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
927
public void OnPost(string name, [ModelBinder(
Name
= "personId")] int id) { }