3 writes to Model
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Validation\ValidationVisitor.cs (3)
194
Model
= container;
556
visitor.
Model
= model;
584
_visitor.
Model
= _model;
11 references to Model
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Validation\ValidationVisitor.cs (11)
222
Model
);
315
if (
Model
is IUnion && Strategy is null &&
362
if (
Model
is IUnion && typeof(IUnion).IsAssignableFrom(Nullable.GetUnderlyingType(Metadata!.ModelType) ?? Metadata.ModelType))
384
(metadata.MetadataKind != ModelMetadataKind.Type && !DefaultUnionValidationStrategy.IsUnionValueProperty(metadata,
Model
!.GetType())))
416
if (
Model
!= null && Metadata!.ValidateChildren)
421
else if (
Model
!= null)
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
);
553
visitor.Container = visitor.
Model
;
574
_model = _visitor.
Model
!;