28 references to ModelBinderAttribute
BasicWebSite (3)
Controllers\BindPropertiesController.cs (1)
19[ModelBinder(typeof(CustomBoundModelBinder))]
Controllers\ContactApiController.cs (2)
74[ModelBinder(typeof(TestModelBinder))] string foo) 81[ModelBinder(typeof(TestModelBinder), Name = "bar")] string foo)
FormatterWebSite (1)
Controllers\PolymorphicBindingController.cs (1)
11public IActionResult ModelBound([ModelBinder(typeof(PolymorphicBinder))] BaseModel person)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\BindingInfoTest.cs (2)
149new ModelBinderAttribute(typeof(ComplexObjectModelBinder)), 226new ModelBinderAttribute(typeof(ComplexObjectModelBinder)),
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinderOfTAttribute.cs (1)
23public ModelBinderAttribute() : base(typeof(TBinder)) { }
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1286[ModelBinder(typeof(ComplexObjectModelBinder))]
ApplicationModels\InferParameterBindingInfoConventionTest.cs (3)
1073public IActionResult ModelBinderType([ModelBinder(typeof(TestModelBinder))] string name) => null; 1076public IActionResult ModelBinderTypeWithExplicitModelName([ModelBinder(typeof(TestModelBinder), Name = "foo")] string name) => null; 1192public IActionResult Action([ModelBinder(typeof(ComplexObjectModelBinder))] Car car) => null;
ModelBinding\Metadata\ModelBinderAttributeTest.cs (1)
43var attribute = new ModelBinderAttribute(typeof(ByteArrayModelBinder));
Microsoft.AspNetCore.Mvc.IntegrationTests (15)
ComplexRecordIntegrationTest.cs (7)
3298private record LoopyModel([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel SelfReference); 3329private record TwoDeepModel([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound); 3331private record ThreeDeepModel([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, TwoDeepModel Inner); 3366private record FourDeepModel([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, ThreeDeepModel Inner); 3399private record LoopyModel1([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel2 Inner); 3401private record LoopyModel2([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel3 Inner); 3403private record LoopyModel3([ModelBinder(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel1 Inner);
ComplexTypeIntegrationTestBase.cs (7)
3529[ModelBinder(typeof(SuccessfulModelBinder))] 3566[ModelBinder(typeof(SuccessfulModelBinder))] 3572[ModelBinder(typeof(SuccessfulModelBinder))] 3613[ModelBinder(typeof(SuccessfulModelBinder))] 3652[ModelBinder(typeof(SuccessfulModelBinder))] 3660[ModelBinder(typeof(SuccessfulModelBinder))] 3668[ModelBinder(typeof(SuccessfulModelBinder))]
Models\SuccessfulModel.cs (1)
8[ModelBinder(typeof(SuccessfulModelBinder))]
RazorPagesWebSite (1)
Pages\PropertyBinding\PolymorphicBinding.cs (1)
11[ModelBinder(typeof(PolymorphicModelBinder))]