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)
11
public IActionResult ModelBound([
ModelBinder
(typeof(PolymorphicBinder))] BaseModel person)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\BindingInfoTest.cs (2)
149
new
ModelBinderAttribute
(typeof(ComplexObjectModelBinder)),
226
new
ModelBinderAttribute
(typeof(ComplexObjectModelBinder)),
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinderOfTAttribute.cs (1)
23
public ModelBinderAttribute() :
base
(typeof(TBinder)) { }
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1286
[
ModelBinder
(typeof(ComplexObjectModelBinder))]
ApplicationModels\InferParameterBindingInfoConventionTest.cs (3)
1073
public IActionResult ModelBinderType([
ModelBinder
(typeof(TestModelBinder))] string name) => null;
1076
public IActionResult ModelBinderTypeWithExplicitModelName([
ModelBinder
(typeof(TestModelBinder), Name = "foo")] string name) => null;
1192
public IActionResult Action([
ModelBinder
(typeof(ComplexObjectModelBinder))] Car car) => null;
ModelBinding\Metadata\ModelBinderAttributeTest.cs (1)
43
var attribute = new
ModelBinderAttribute
(typeof(ByteArrayModelBinder));
Microsoft.AspNetCore.Mvc.IntegrationTests (15)
ComplexRecordIntegrationTest.cs (7)
3298
private record LoopyModel([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel SelfReference);
3329
private record TwoDeepModel([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound);
3331
private record ThreeDeepModel([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound, TwoDeepModel Inner);
3366
private record FourDeepModel([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound, ThreeDeepModel Inner);
3399
private record LoopyModel1([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel2 Inner);
3401
private record LoopyModel2([
ModelBinder
(typeof(SuccessfulModelBinder))] bool IsBound, LoopyModel3 Inner);
3403
private 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))]