title: ModelMetadata: ShowForEdit property not appearing to work
body: <p>Iv wrote an MetaDataProvider like the one below and am using it in conjunction with Editor templates. The DisplayName is working correctly, but for some reason the ShowForEdit value it not having any effect. Any ideas?</p>
  
  <pre><code>public class MyModelMetadataProvider : DataAnnotationsModelMetadataProvider
  {
          protected override ModelMetadata CreateMetadata(IEnumerable&lt;Attribute&gt; attributes, Type containerType,
                                                          Func&lt;object&gt; modelAccessor, Type modelType, string propertyName)
          {
              var metadata = base.CreateMetadata(attributes, containerType, modelAccessor, modelType, propertyName);          I
  
              metadata.DisplayName = "test";
  
              metadata.ShowForEdit = false;
              metadata.ShowForDisplay = false;
              metadata.HideSurroundingHtml = true;
  
              return metadata;
          }
  }
  </code></pre>