Cleanup BindingInfo \ ModelMetadata coalescing in ModelBinderFactory
Fixes #7583
This commit is contained in:
parent
26454fb1da
commit
bda5ea9df0
|
|
@ -275,15 +275,10 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
|
||||||
|
|
||||||
public override IModelBinder CreateBinder(ModelMetadata metadata)
|
public override IModelBinder CreateBinder(ModelMetadata metadata)
|
||||||
{
|
{
|
||||||
return CreateBinder(
|
var bindingInfo = new BindingInfo();
|
||||||
metadata,
|
bindingInfo.TryApplyBindingInfo(metadata);
|
||||||
new BindingInfo()
|
|
||||||
{
|
return CreateBinder(metadata, bindingInfo);
|
||||||
BinderModelName = metadata.BinderModelName,
|
|
||||||
BinderType = metadata.BinderType,
|
|
||||||
BindingSource = metadata.BindingSource,
|
|
||||||
PropertyFilterProvider = metadata.PropertyFilterProvider,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
|
public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue