2 writes to Metadata
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\Validation\ValidationEntry.cs (2)
25
Metadata
= metadata;
43
Metadata
= metadata;
48 references to Metadata
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
436
var metadata = entry.
Metadata
;
Microsoft.AspNetCore.Mvc.Core.Test (41)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (9)
29
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
35
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
41
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
69
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
75
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
81
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
104
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
110
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
116
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (12)
36
Assert.Same(metadata.Properties["Age"], entry.
Metadata
);
42
Assert.Same(metadata.Properties["Id"], entry.
Metadata
);
48
Assert.Same(metadata.Properties["Name"], entry.
Metadata
);
76
Assert.Same(metadata.Properties["Age"], entry.
Metadata
);
82
Assert.Same(metadata.Properties["Id"], entry.
Metadata
);
88
Assert.Same(metadata.Properties["Name"], entry.
Metadata
);
110
Assert.Same(metadata.Properties["Age"], entry.
Metadata
);
116
Assert.Same(metadata.Properties["Id"], entry.
Metadata
);
122
Assert.Same(metadata.Properties["Name"], entry.
Metadata
);
145
Assert.Same(metadata.Properties["Age"], entry.
Metadata
);
151
Assert.Same(metadata.Properties["Id"], entry.
Metadata
);
157
Assert.Same(metadata.Properties["Name"], entry.
Metadata
);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (13)
29
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
35
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
41
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
69
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
75
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
81
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
104
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
110
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
116
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
140
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
146
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
170
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
176
Assert.Same(metadata.ElementMetadata, e.
Metadata
);
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (7)
40
Assert.Same(valueMetadata, e.
Metadata
);
46
Assert.Same(valueMetadata, e.
Metadata
);
52
Assert.Same(valueMetadata, e.
Metadata
);
87
Assert.Same(valueMetadata, e.
Metadata
);
93
Assert.Same(valueMetadata, e.
Metadata
);
128
Assert.Same(valueMetadata, e.
Metadata
);
134
Assert.Same(valueMetadata, e.
Metadata
);
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
ValidationIntegrationTests.cs (3)
1541
if (entry.
Metadata
.MetadataKind == ModelMetadataKind.Property &&
1542
parentEntry.
Metadata
!= null)
1547
var otherProperty = parentEntry.
Metadata
.Properties[_otherProperty];
ValidationWithRecordIntegrationTests.cs (3)
1351
if (entry.
Metadata
.MetadataKind == ModelMetadataKind.Property &&
1352
parentEntry.
Metadata
!= null)
1357
var otherProperty = parentEntry.
Metadata
.Properties[_otherProperty];