title: difference between: [ScaffoldColumn (false)] and [Display (AutoGenerateField = false)]
body: <p>To render HTML in my edit view, I use the helper <code>@Html.EditorForModel()</code>.</p>
  
  <p><strong>My model:</strong></p>
  
  <pre><code>[Required(ErrorMessage = "Campo obrigatório")]
  [Display(Name = "Nome completo")]
  public string Name { get; set; }
  
  [Required(ErrorMessage = "Campo é obrigatório")]
  [StringLength(100, ErrorMessage = "A {0} deve ter pelo menos {2} characteres.", MinimumLength = 6)]
  [DataType(DataType.Password)]
  [Display(Name = "Senha")]
  public string Password { get; set; }
  
  [DataType(DataType.Password)]
  [Display(Name = "Confirmar senha")]
  [Compare("Password", ErrorMessage = "A nova senha e a confirmação da senha não conincidem.")]
  public string ConfirmPassword { get; set; }
  
  [Required(ErrorMessage = "Campo obrigatório")]
  [Display(Name = "Convidado")]
  [UIHint("IsGuest")]
  public bool IsGuest { get; set; }
  
  [RequiredIf("IsGuest", true, ErrorMessage = "Campo é obrigatório")]
  [ScaffoldColumn(false)]
  public string CodeGuest { get; set; }
  </code></pre>
  
  <p>Property: <code>CodeGuest</code> should not be created by the helper <code>@Html.EditorForModel()</code>.  (I would like to create it manually.)</p>
  
  <p>Reading on the Internet, I found several points and would like to know the difference.</p>
  
  <p>Remembering that I do not want it to be hidden, this field will only be created by this </p>
  
  <p><strong>EditorTemplates (IsGuest.cshtml):</strong></p>
  
  <pre><code>@using BindSolution.AndMarried.Model;
  @model BindSolution.AndMarried.Models.RegisterModel
  @Html.EditorFor(e =&gt; e.IsGuest)
  &lt;span&gt;TESTE&lt;/span&gt;
  @Html.EditorFor(e =&gt; e.CodeGuest)
  </code></pre>
  
  <p>Question:</p>
  
  <p>What is the difference between: <code>[ScaffoldColumn (false)]</code> and <code>[Display (AutoGenerateField = false)]</code></p>
  
  <p>Why can not I make <code>[Display (AutoGenerateField = false)] have the effect: 'do not generate the HTML field when calling</code>@Html.EditorForModel()`.</p>