Why default asp Scaffolding skips some of the model properties while generating 'Create' and 'Edit' views?
<p>I am trying to generate a scaffold controller in my project, which is in VS2015 community edition and based on entity framework 6.1.3. Every time I try to do so, it only generates portion of the model. I mean the properties below.</p>

<pre><code>public string Number { get; set; }
    public string Firstname { get; set; }
    public string Surname { get; set; }
</code></pre>

<p>model class</p>

<pre><code>public class Students
{
    [Key]
    [ScaffoldColumn(false)]
    public int StudentsID { get; set; }

    [DataType(DataType.Text)]
    [Display(Name = "Student ID")]
    public string Number { get; set; }

    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Firstname")]
    public string Firstname { get; set; }

    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Surname")]
    public string Surname { get; set; }

    [DataType(DataType.Text)]
    [Display(Name = "Date Of Birth")]
    public string DateOfBirth { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Year")]
    public int Year { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Class")]
    public int Class { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Address")]
    public string Address { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Postal code")]
    public string Postalcode { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Doctor Name")]
    public string DoctorName { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Doctor Address")]
    public string DoctorAddress { get; internal set; }
    //[Required]
    [DataType(DataType.Text)]
    [Display(Name = "Doctor Postalcode")]
    public string DoctorPostalcode { get; internal set; }
    [DataType(DataType.Text)]
    [Display(Name = "Meds Info")]
    public string MedsInfo { get; internal set; }



}
</code></pre>

<p>Data context</p>

<pre><code>public class SchoolContext : DbContext
{
    public SchoolContext()
        : base("DefaultConnection")
    {
    }
    public DbSet&lt;Students&gt; students { get; set; }


}
</code></pre>

<p>I don't know what to do. Same problem occurs, no matter if it is in a new project. My scaffolding controller creation process is below:</p>

<p><a href="https://i.stack.imgur.com/RVORh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RVORh.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/jjGx7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jjGx7.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/8dEoP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8dEoP.png" alt="enter image description here"></a></p>