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