2 writes to Key
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Validation\ValidationVisitor.cs (2)
554
visitor.
Key
= key;
582
_visitor.
Key
= _key;
11 references to Key
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Validation\ValidationVisitor.cs (11)
204
Debug.Assert(
Key
!= null);
206
var state = ModelState.GetValidationState(
Key
);
234
var key = ModelNames.CreatePropertyModelName(
Key
, result.MemberName);
243
state = ModelState.GetFieldValidationState(
Key
);
252
ModelState[
Key
]?.ValidationState = ModelValidationState.Valid;
426
SuppressValidation(
Key
!);
447
SuppressValidation(
Key
!);
461
Debug.Assert(Metadata is not null &&
Key
is not null && Model is not null);
464
var enumerator = strategy.GetChildren(Metadata,
Key
, Model);
465
var parentEntry = new ValidationEntry(Metadata,
Key
, Model);
572
_key = _visitor.
Key
!;