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 #570

@NeoAnomaly

Description

@NeoAnomaly

In the #418 discussed why this might be required.
I want a single context and for an unit tests purposes I need something like this:

var builder = new DbContextOptionsBuilder<SingleContextInMyApp>();
builder.UseInMemoryDatabase(persist: true);
var options = builder.Options;

using (var context = new SingleContextInMyApp(options))
{
...test code...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions