Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>That's because you deleted your referenced fields and prevent the controller to get that data from those fields! to hide your input fields just add annotations to your entity class:</p> <pre><code> public partial class Division { public Division() { this.Id = Guid.NewGuid(); this.Persons = new HashSet&lt;Person&gt;(); this.DevisionContnets = new HashSet&lt;DevisionContnet&gt;(); } public System.Guid Id { get; set; } public string Name { get; set; } public virtual Grade Grade { get; set; } public virtual ICollection&lt;Person&gt; Persons { get; set; } public virtual ICollection&lt;DevisionContnet&gt; DevisionContnets { get; set; } [HiddenInput(DisplayValue = false)] // this will hide your data fields public virtual DateTime InsertDate { get; set; } [HiddenInput(DisplayValue = false)] public Nullable&lt;System.DateTime&gt; UpdateDate { get; set; } [HiddenInput(DisplayValue = false)] public Nullable&lt;System.Guid&gt; InsertUid { get; set; } [HiddenInput(DisplayValue = false)] public Nullable&lt;System.Guid&gt; UpdateUid { get; set; } [HiddenInput(DisplayValue = false)] public string UpdateStatment { get; set; } } </code></pre> <p>and keep your fields in your views with removing the scaffolded labels </p> <p><strong>Update:</strong> Alsow It's recommended to use ViewModel as recommended in Question Comments</p> <p>Using [ScaffoldColumn(false)] can do the same but these values will not been generated so you'll not able to use those fields if you want to use them, So you have the options! </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload