title: ASP.Net Identity how to set target DB?
body: <p>I am using the <a href="https://github.com/rustd/AspnetIdentitySample/">ASP.NET Identity Sample</a> from the Asp-Team, and i am trying to change the database for the <code>IdentityDbContext</code>...</p>
  
  <p>I tried it with the constructor </p>
  
  <pre><code>public MyDbContext() : base("MyConnectionString") { } // base is IdentityDbContext
  </code></pre>
  
  <p>like with a DbContext class.</p>
  
  <p>That works well until i try to Register a User...</p>
  
  <pre><code>await IdentityStore.CreateLocalUser(user, model.Password)
  </code></pre>
  
  <p>returns <code>false</code>... no error, nothing.</p>
  
  <p>Any ideas how to fix that?</p>
  
  <p>Edit:</p>
  
  <p>Filename is <code>Models\AppModel.cs</code>, there is the <code>MyDbContext class</code></p>
  
  <p>originally it was</p>
  
  <pre><code>public class MyDbContext : IdentityDbContext&lt;MyUser, UserClaim, UserSecret, UserLogin, Role, UserRole&gt;
  {
  }
  </code></pre>
  
  <p>i changed it to</p>
  
  <pre><code>public class MyDbContext : IdentityDbContext&lt;MyUser, UserClaim, UserSecret, UserLogin, Role, UserRole&gt;
  {
      public MyDbContext() : base("MyConnectionString") { }
  }
  </code></pre>
  
  <p>the connection string is working because i have other projects using the same, and they run fine.</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="MySailorContext" connectionString="Data Source=THOMAS-LAPTOP;Initial Catalog=MySailor;Integrated Security=True;Pooling=False;MultipleActiveResultSets=true" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>