Update to use DbContextOptionsBuilder
This commit is contained in:
parent
e925fa2dcb
commit
1671b18545
|
|
@ -10,7 +10,7 @@ namespace IdentitySample.Models
|
||||||
|
|
||||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { }
|
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { }
|
||||||
|
|
||||||
public class IdentityDbContextOptions : DbContextOptions
|
public class IdentityDbContextOptions
|
||||||
{
|
{
|
||||||
public string DefaultAdminUserName { get; set; }
|
public string DefaultAdminUserName { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,10 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
||||||
{
|
{
|
||||||
public InMemoryContext() { }
|
public InMemoryContext() { }
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptions builder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
// Want fresh in memory store for tests always for now
|
// Want fresh in memory store for tests always for now
|
||||||
builder.UseInMemoryStore(persist: false);
|
optionsBuilder.UseInMemoryStore(persist: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue