21 references to BindingMetadata
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Metadata\DefaultModelMetadata.cs (11)
167
public override BindingSource? BindingSource =>
BindingMetadata
.BindingSource;
170
public override string? BinderModelName =>
BindingMetadata
.BinderModelName;
173
public override Type? BinderType =>
BindingMetadata
.BinderType;
256
return
BindingMetadata
.IsBindingAllowed;
274
_isBindingRequired =
BindingMetadata
.IsBindingRequired;
299
else if (
BindingMetadata
.IsReadOnly.HasValue)
301
_isReadOnly =
BindingMetadata
.IsReadOnly;
337
BindingMetadata
.ModelBindingMessageProvider!;
380
if (
BindingMetadata
.BoundConstructor == null)
388
_constructorMetadata = modelMetadataProvider.GetMetadataForConstructor(
BindingMetadata
.BoundConstructor, ModelType);
399
public override IPropertyFilterProvider? PropertyFilterProvider =>
BindingMetadata
.PropertyFilterProvider;
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (4)
40
Assert.Same(metadata1.
BindingMetadata
, metadata2.
BindingMetadata
);
131
Assert.Same(properties1[i].
BindingMetadata
, properties2[i].
BindingMetadata
);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (6)
1336
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;
1380
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;
1425
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;
1470
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;
1515
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;
1560
modelMetadata.
BindingMetadata
.BoundConstructor = constructor;