2 implementations of GetMetadataForProperties
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (1)
820
public virtual IEnumerable<ModelMetadata>
GetMetadataForProperties
(Type modelType)
ModelBinding\ModelMetadataProvider.cs (1)
18
public abstract IEnumerable<ModelMetadata>
GetMetadataForProperties
(Type modelType);
17 references to GetMetadataForProperties
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
366
var properties = _provider.
GetMetadataForProperties
(ModelType);
567
return _provider.
GetMetadataForProperties
(modelType);
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (15)
483
.Setup(p => p.
GetMetadataForProperties
(typeof(string)))
555
.Setup(p => p.
GetMetadataForProperties
(typeof(string)))
667
.Setup(p => p.
GetMetadataForProperties
(typeof(string)))
975
.Setup(mp => mp.
GetMetadataForProperties
(typeof(Exception)))
1079
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1106
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1130
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1157
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1193
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1198
.Setup(mp => mp.
GetMetadataForProperties
(typeof(BusinessUnit)))
1234
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1238
.Setup(mp => mp.
GetMetadataForProperties
(typeof(BusinessUnit)))
1267
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1306
.Setup(mp => mp.
GetMetadataForProperties
(modelType))
1310
.Setup(mp => mp.
GetMetadataForProperties
(typeof(BusinessUnit)))