ASP.NET MVC 5 Storing identity users in Oracle database
<p>I'm pretty new to developing ASP.NET apps, I started a new project and I'm using a Oracle DB with the ODP and OLAC plugins. I set up my connection string and I can see the database under the Server Explorer.</p>

<p>Now I want the Identity users to be stored on my DB too, but I cannot find where they are being stored right now. The app_data folder is empty, there are no .mdf files anywhere, my connection string is the Oracle connection string; but when I set up the IdentityDBContext to use my own connection string I get an error saying <strong>"The entity type ApplicationUser is not part of the model for the current context."</strong> I'm using a database-first approach:</p>

<p>This is the autogenerated code for my DB context:</p>

<pre><code>public partial class ActivoContext : DbContext
{
    public ActivoContext()
        : base("name=ActivoContext")
    {
    }

    protected override void OnModelCreating(DbModelBuilder modelBuilder)
    {
        throw new UnintentionalCodeFirstException();
    }
......
</code></pre>

<p>This is the Identity code generated by the project, I just changed the connection string:</p>

<pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser&gt;
{
    public ApplicationDbContext()
        : base("name=ActivoContext", throwIfV1Schema: false)
    {
    }

    public static ApplicationDbContext Create()
    {
        return new ApplicationDbContext();
    }
}
</code></pre>

<p>web.config file:</p>

<pre><code>&lt;connectionStrings&gt;
  &lt;add name="ActivoContext" connectionString="metadata=res://*/Activo.csdl|res://*/Activo.ssdl|res://*/Activo.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string=&amp;quot;DATA SOURCE=localhost:1521/xe;PASSWORD=activos;USER ID=ACTIVOS&amp;quot;" providerName="System.Data.EntityClient" /&gt;
&lt;/connectionStrings&gt;
</code></pre>

<p><strong>EDIT</strong>
So I realized the problem is having two different Contexts using the same connection string. Because of this, only one shows up and the other one doesnt work: the auto-generated db-first ActivoContext shows up and ApplicationDbContext doesnt. How should I go about merging these two or making them work together? I can't modify DbContext cause its auto-generated... </p>