1 write to ModelState
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
48
ModelState
= actionContext.ModelState;
11 references to ModelState
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Validation\ValidationVisitor.cs (11)
178
var entry =
ModelState
[key];
205
var state =
ModelState
.GetValidationState(Key);
237
ModelState
.TryAddModelError(key, result.Message);
242
state =
ModelState
.GetFieldValidationState(Key);
251
var entry =
ModelState
[Key];
323
if (
ModelState
.HasReachedMaxErrors)
337
ModelState
.GetFieldValidationState(key) != ModelValidationState.Invalid)
345
var entries =
ModelState
.FindKeysWithPrefix(key);
397
if ((isValid || ValidateComplexTypesIfChildValidationFails) && !
ModelState
.HasReachedMaxErrors)
411
if (
ModelState
.HasReachedMaxErrors)
463
var entries =
ModelState
.FindKeysWithPrefix(key);