Removing IsFromBody property from ModelMetadata

This commit is contained in:
Pranav K 2014-02-26 13:40:35 -08:00
parent 9915b1c767
commit 04c7b50726
3 changed files with 0 additions and 11 deletions

View File

@ -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))

View File

@ -132,10 +132,5 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
return base.IsComplexType;
}
protected virtual bool ComputeIsFromBody()
{
return base.IsFromBody;
}
}
}

View File

@ -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(); }