Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Pass in DbContextOptions to /Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext #418

@diffused

Description

@diffused

Would like to externally override DbContextOptions when instantiating a context that uses IdentityDbContext like so:

public class AppDbContext : IdentityDbContext<ApplicationUser>
{
    public AppDbContext() { }

    public AppDbContext(DbContextOptions options)
        : base(options)
    {
    }
}

Perhaps adding something like this to IdentityDbContext.cs?

public class IdentityDbContext<TUser> : IdentityDbContext<TUser, IdentityRole, string> where TUser : IdentityUser
{
    public IdentityDbContext() { }
    public IdentityDbContext(DbContextOptions options)
        : base(options)
    {
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions