title: the name 'modelBuilder' does not exist in the current context
body: <p>I am getting this error <strong>the name 'modelBuilder' does not exist in the current context</strong> in Entity Framework Core and I am using Visual Studio 2017 and Asp.Net Core 2.0</p>
  
  <p>In Entity Framework 6 we use following code to split an entity. Now I am using Visual Studio 2017 and Entity Framework Core 2.0 and getting "the name 'modelBuilder' does not exist in the current context" when using modelBuilder.Entity&lt;>()</p>
  
  <p>I think that it is more clear to understand now.</p>
  
  <pre><code>public partial class Model : DbContext  
  {  
     public Model() : base("name=EntityModel")  
     {  
        Database.Log = Console.WriteLine;  
  }  
  public virtual DbSet&lt;Employee&gt; Employees { get; set; }  
  
  protected override void OnModelCreating(DbModelBuilder modelBuilder)  
  {  
    modelBuilder.Entity&lt;Employee&gt;()  
    .Map(map =&gt;  
    {  
    map.Properties(p =&gt; new  
    {  
       p.EmployeeId,  
       p.Name,  
       p.Code  
    });  
    map.ToTable("Employee");  
    })  
    // Map to the Users table  
    .Map(map =&gt;  
    {  
    map.Properties(p =&gt; new  
    {  
       p.PhoneNumber,  
       p.EmailAddress  
    });  
    map.ToTable("EmployeeDetails");  
    });  
   }  
  }
  </code></pre>