3 writes to Model
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Validation\ValidationVisitor.cs (3)
194Model = container; 556visitor.Model = model; 584_visitor.Model = _model;
11 references to Model
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Validation\ValidationVisitor.cs (11)
222Model); 315if (Model is IUnion && Strategy is null && 362if (Model is IUnion && typeof(IUnion).IsAssignableFrom(Nullable.GetUnderlyingType(Metadata!.ModelType) ?? Metadata.ModelType)) 384(metadata.MetadataKind != ModelMetadataKind.Type && !DefaultUnionValidationStrategy.IsUnionValueProperty(metadata, Model!.GetType()))) 416if (Model != null && Metadata!.ValidateChildren) 421else if (Model != null) 461Debug.Assert(Metadata is not null && Key is not null && Model is not null); 464var enumerator = strategy.GetChildren(Metadata, Key, Model); 465var parentEntry = new ValidationEntry(Metadata, Key, Model); 553visitor.Container = visitor.Model; 574_model = _visitor.Model!;