Base:
property
BinderModelName
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.BinderModelName
12 writes to BinderModelName
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\DefaultModelBindingContext.cs (2)
216
BinderModelName
= binderModelName,
268
BinderModelName
= modelMetadata.BinderModelName;
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Binders\BodyModelBinderTests.cs (6)
83
bindingContext.
BinderModelName
= "custom";
140
bindingContext.
BinderModelName
= "custom";
178
bindingContext.
BinderModelName
= "custom";
206
bindingContext.
BinderModelName
= "custom";
234
bindingContext.
BinderModelName
= "custom";
634
bindingContext.
BinderModelName
= bindingContext.ModelName;
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1111
BinderModelName
= metadata.BinderModelName,
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1275
BinderModelName
= metadata.BinderModelName,
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
352
BinderModelName
= metadata.BinderModelName,
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
55
BinderModelName
= modelMetadata.BinderModelName,
4 references to BinderModelName
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\BodyModelBinderTests.cs (2)
243
Assert.Single(bindingContext.ModelState[bindingContext.
BinderModelName
].Errors);
244
Assert.Equal("Unsupported content type ''.", bindingContext.ModelState[bindingContext.
BinderModelName
].Errors[0].Exception.Message);
ModelBinding\DefaultModelBindingContextTest.cs (2)
40
var originalBinderModelName = bindingContext.
BinderModelName
;
51
Assert.Same(newModelMetadata.BinderModelName, bindingContext.
BinderModelName
);