title: MVC 3: Hide ID property using EditorForModel
body: <p>I have this line in my View:</p>
  
  <pre><code>@Html.EditorForModel()
  </code></pre>
  
  <p>And this is my ViewModel:</p>
  
  <pre><code>public class CommentForm
  {
      public int Id { get; set; }
  
      [DisplayName("Kommentar"), DataType(DataType.MultilineText)]
      public string Comment { get; set; }
  }
  </code></pre>
  
  <p>The problem is that <code>Id</code> renders as a textfield in the form. Actually, I only want to use <code>Id</code> in the form action. Is there an attribute that tells the editor not to render the property <code>Id</code>?</p>