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