Removing IsFromBody property from ModelMetadata
This commit is contained in:
parent
9915b1c767
commit
04c7b50726
|
|
@ -73,7 +73,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
|
|||
// Protects against stack overflow for deeply nested model binding
|
||||
// RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
|
||||
bool requiresBodyBinder = bindingContext.ModelMetadata.IsFromBody;
|
||||
foreach (IModelBinder binder in Binders)
|
||||
{
|
||||
if (binder.BindModel(bindingContext))
|
||||
|
|
|
|||
|
|
@ -132,10 +132,5 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
|
|||
{
|
||||
return base.IsComplexType;
|
||||
}
|
||||
|
||||
protected virtual bool ComputeIsFromBody()
|
||||
{
|
||||
return base.IsFromBody;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,11 +54,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
|
|||
|
||||
public virtual string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the model needs to be consumed from the body.
|
||||
/// </summary>
|
||||
public virtual bool IsFromBody { get; set; }
|
||||
|
||||
public virtual bool IsComplexType
|
||||
{
|
||||
get { return !ModelType.HasStringConverter(); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue