1 override of ModelState
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\DefaultModelBindingContext.cs (1)
81
public override ModelStateDictionary
ModelState
35 references to ModelState
Microsoft.AspNetCore.Mvc.Core (32)
ModelBinding\Binders\BodyModelBinder.cs (4)
111
bindingContext.
ModelState
,
148
bindingContext.
ModelState
.AddModelError(modelBindingKey, exception, bindingContext.ModelMetadata);
180
bindingContext.
ModelState
.AddModelError(modelBindingKey, message);
185
bindingContext.
ModelState
.AddModelError(modelBindingKey, exception, bindingContext.ModelMetadata);
ModelBinding\Binders\ByteArrayModelBinder.cs (2)
44
bindingContext.
ModelState
.SetModelValue(bindingContext.ModelName, valueProviderResult);
62
bindingContext.
ModelState
.TryAddModelError(
ModelBinding\Binders\CollectionModelBinder.cs (3)
181
bindingContext.
ModelState
.SetModelValue(
205
/// Add a <see cref="ModelError" /> to <see cref="ModelBindingContext.
ModelState
" /> if
222
bindingContext.
ModelState
.TryAddModelError(bindingContext.ModelName, message);
ModelBinding\Binders\ComplexObjectModelBinder.cs (4)
122
bindingContext.
ModelState
.TryAddModelError(bindingContext.ModelName, message);
472
bindingContext.
ModelState
.TryAddModelError(modelName, message);
501
bindingContext.
ModelState
.TryAddModelError(modelName, message);
726
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\ComplexTypeModelBinder.cs (3)
187
bindingContext.
ModelState
.TryAddModelError(bindingContext.ModelName, message);
292
bindingContext.
ModelState
.TryAddModelError(modelName, message);
564
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\DateTimeModelBinder.cs (1)
50
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\DecimalModelBinder.cs (1)
52
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\DictionaryModelBinder.cs (1)
174
bindingContext.
ModelState
.AddModelError(bindingContext.ModelName, ex.Message);
ModelBinding\Binders\DoubleModelBinder.cs (1)
52
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
51
bindingContext.
ModelState
.TryAddModelError(
ModelBinding\Binders\FloatModelBinder.cs (1)
52
var modelState = bindingContext.
ModelState
;
ModelBinding\Binders\FormFileModelBinder.cs (1)
126
bindingContext.
ModelState
.SetModelValue(
ModelBinding\Binders\HeaderModelBinder.cs (1)
154
bindingContext.
ModelState
.SetModelValue(
ModelBinding\Binders\KeyValuePairModelBinder.cs (2)
64
bindingContext.
ModelState
.TryAddModelError(
73
bindingContext.
ModelState
.TryAddModelError(
ModelBinding\Binders\SimpleTypeModelBinder.cs (3)
51
bindingContext.
ModelState
.SetModelValue(bindingContext.ModelName, valueProviderResult);
97
bindingContext.
ModelState
.TryAddModelError(
122
bindingContext.
ModelState
.TryAddModelError(
ModelBinding\Binders\TryParseModelBinder.cs (3)
59
bindingContext.
ModelState
.SetModelValue(bindingContext.ModelName, valueProviderResult);
73
bindingContext.
ModelState
.TryAddModelError(
101
bindingContext.
ModelState
.TryAddModelError(
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
BinderTypeBasedModelBinderIntegrationTest.cs (3)
331
bindingContext.
ModelState
.SetModelValue(
356
bindingContext.
ModelState
.SetModelValue(
374
bindingContext.
ModelState
.SetModelValue(