2 writes to Metadata
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Validation\ValidationVisitor.cs (2)
521
visitor.
Metadata
= metadata;
549
_visitor.
Metadata
= _metadata;
10 references to Metadata
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\Validation\ValidationVisitor.cs (10)
204
Debug.Assert(
Metadata
!= null);
211
var validators = Cache.GetValidators(
Metadata
, ValidatorProvider);
218
Metadata
!,
359
if (
Metadata
!.IsEnumerableType)
364
if (
Metadata
.IsComplexType)
382
if (Model != null &&
Metadata
!.ValidateChildren)
427
Debug.Assert(
Metadata
is not null && Key is not null && Model is not null);
430
var enumerator = strategy.GetChildren(
Metadata
, Key, Model);
431
var parentEntry = new ValidationEntry(
Metadata
, Key, Model);
539
_metadata = _visitor.
Metadata
!;