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

Pass in DbContextOptions to Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext #570

Closed
NeoAnomaly opened this issue Sep 19, 2015 · 1 comment
Assignees
Milestone

Comments

@NeoAnomaly
Copy link

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...
}
@rustd rustd added this to the 3.0.0-beta8 milestone Sep 21, 2015
@HaoK
Copy link
Member

HaoK commented Sep 23, 2015

5c07007

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants