How to change the database that ASP.NET Identity use for creating its necessary tables? <p>I have 2 projects in my solution</p> <ol> <li>Web UI</li> <li>Web API</li> </ol> <p>I am using Web API project for authentication (ASsp.Net Identity Framework). Below is the web.config setting for the connection string in Web.API project</p> <pre><code>&lt;connectionStrings&gt; &lt;add name="AuthContext" connectionString="Data Source=./SQLEXPRESS;Initial Catalog=TestDB;Integrated Security=SSPI;" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt; </code></pre> <p>My DbContext Class</p> <pre><code>public class AuthContext : IdentityDbContext&lt;IdentityUser&gt; { public AuthContext() : base("AuthContext",throwIfV1Schema:false) { } public static AuthContext Create() { return new AuthContext(); } public DbSet&lt;Client&gt; Clients { get; set; } public DbSet&lt;RefreshToken&gt; RefreshTokens { get; set; } } </code></pre> <p>TestDB is an existing database with few tables. This is what I did in Web API project in the Package Manager Console</p> <ol> <li>Enable-Migrations</li> <li>Add-Migration InitialCreate</li> <li>Update-Database</li> </ol> <p>It always create a new database called AuthContext instead of adding the necessary tables in TestDB.</p> <p>I set the Web UI project as the Startup Project in my solution. How do I get update-database to create tables in TestDb instead of creating of new database.</p> <p>-Alan-</p>