title: ASP.NET Identity core does not create tables
body: <p>I am new to ASP.NET Core. I tried to develop and in ASP.NET Core with this configuration in dbcontext :</p>
  
  <pre><code> protected override void OnConfiguring(DbContextOptionsBuilder options)
      {
          options.
              UseSqlServer(@"Data Source=.\SQLEXPRESS;Initial Catalog=DBName;Integrated Security=True");
  
  
      }
  </code></pre>
  
  <p>And here is the startup.cs configuration :</p>
  
  <pre><code> public void ConfigureServices(IServiceCollection services)
          {
              // Add framework services.
              services.AddMvc();
              services.AddEntityFramework()
                 //.AddSqlServer()
                 .AddDbContext&lt;TicketContext&gt;();.....
            }
  </code></pre>
  
  <p>But when I wan to create a user as below: </p>
  
  <pre><code>var result = await _userManager.CreateAsync(user, "password");
  </code></pre>
  
  <p>, I  get the following error :</p>
  
  <blockquote>
    <p>Invalid object name 'AspNetUsers'</p>
  </blockquote>
  
  <p>Updated</p>
  
  <p>With a help of "Alex" in  comments, I did some modifications and now I have these in my project.json now:</p>
  
  <pre><code>"dependencies": {
      "Microsoft.NETCore.App": {
        "version": "1.0.1",
        "type": "platform"
      },
  .....
      "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
      "Microsoft.EntityFrameworkCore.Design": "1.0.1",
      "Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",
      "Microsoft.AspNetCore.Identity": "1.0.0",
      "DataAccessLayer": "1.0.0-*",
      "AspNet.Security.OAuth.Validation": "1.0.0-alpha2-final",
      "OpenIddict": "1.0.0-*",
      "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"
    },
  
    "tools": {
      "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
      "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"
    },
  </code></pre>
  
  <p>But when I run "dotnet ef database update" I got error as below : </p>
  
  <p>"Unhandled Exception: System.MissingMethodException: Entry point not found in assembly 'Microsoft.EntityFrameworkCore.Design, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."</p>
  
  <p>Updated</p>
  
  <p>As it seems, when using ef core in first code way, you have to do migration first, so tables are created.</p>