title: There was an error running the selected generator . try rebuilding the project
body: <p>When I create the Scaffold and add the Model class then I am getting these error <strong>"There was an error running the selected generator . try rebuilding the project"</strong> </p>
  
  <p>I have three Model class :</p>
  
  <p>1.Department.CS</p>
  
  <p>2.Designation.cs</p>
  
  <p>3.CompanyDBContext.cs</p>
  
  <p>Database : I have two table in database, 1. Department(deptID,deptName,Description) 
                                           2. Designation(desgtID,desgName,description)</p>
  
  <p>Objective :- I want to create one view page for these scenario. Like this</p>
  
  <p>Insert Name of Form (TextBox) + Department Name (Dropdown list box)  + Designation Name (Dropdown list box)      </p>
  
  <p>1.Department.CS</p>
  
  <pre><code>namespace mvcAppraisalSystem.Models
  {
    public class Department
    {
      [Key]
      public int deptID { get; set; }
      public string deptName { get; set; }
      public string Description { get; set; }
    }
   }
  </code></pre>
  
  <p>2.Designation.cs</p>
  
  <pre><code>namespace mvcAppraisalSystem.Models
  {
     public class Designation
     {
        [Key]
        public int desgID { get; set; }
        public string desgName { get; set; }
        public string description { get; set; }
     }
   }
  </code></pre>
  
  <p>3.CompanyDBContext.cs</p>
  
  <pre><code> namespace mvcAppraisalSystem.Models
   {
     public class CompanyDBContext : DbContext
     {
        public DbSet&lt;CompanyDBContext&gt; Departments { get; set; }
  
        public DbSet&lt;CompanyDBContext&gt; Designations { get; set; }
     }
   }
  </code></pre>