title: Cannot add migration with ASP.net Core 2
body: <p>I'm building a new project using ASP.net Core 2 and EntityFrameWorkCore 2.1.0 and I began to build the database structure. Now I have to make my first Migration to get my database ready and when I execute 'Add-Migration Init' into the Package Manager Console I got this error: </p>
  
  <pre><code>The current CSharpHelper cannot scaffold literals of type 'Microsoft.EntityFrameworkCore.Metadata.Internal.DirectConstructorBinding'. Configure your services to use one that can.
  </code></pre>
  
  <p>Also I tried this documentation <a href="https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations</a> and the message I got is: </p>
  
  <pre><code>Unable to create an object of type 'ApplicationDbContext'. Add an implementation of 'IDesignTimeDbContextFactory&lt;ApplicationDbContext&gt;' to the project, or see https://go.microsoft.com/fwlink/?linkid=851728 for additional patterns supported at design time.
  </code></pre>
  
  <p>I also followed this <a href="https://tahirnaushad.com/2017/10/10/asp-net-core-2-0-identity/" rel="nofollow noreferrer">article</a> without any success.</p>
  
  <p>If I try without Microsoft.AspNetCore.Identity.EntityFrameworkCore 2.0.2 and with a simple 2 tables structure I'm able to make it work.</p>
  
  <p>So now I need your help...</p>