title: Razor how to pass object from model source to target model after submit form
body: <p>Hi I have following field, that display Name of Account. </p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.transaction.TargetAccount.Name, new { htmlAttributes = new { placeholder = Html.DisplayNameFor(x =&gt; x.transaction.TargetAccount.AccountId), @class = "form-control", disabled = "disabled", @readonly = "readonly" } })
  @Html.ValidationMessageFor(model =&gt; model.transaction.TargetAccount, "", new { @class = "text-danger" })
  </code></pre>
  
  <p>This is read only field. I would like to no pass this object into target Model.  Unfortunately,  reference objects are not passed. Only String ones. So AccountId is null on validation</p>