зеркало из https://github.com/aspnet/Identity.git
Forgot to save this file so it didn't get included in the last checkin.
This commit is contained in:
Родитель
be7c69e5c0
Коммит
ea3ab84340
|
@ -90,10 +90,7 @@ namespace Microsoft.AspNet.Identity.Entity.Test
|
||||||
var db = new IdentitySqlContext(serviceProvider);
|
var db = new IdentitySqlContext(serviceProvider);
|
||||||
|
|
||||||
// TODO: Recreate DB, doesn't support String ID or Identity context yet
|
// TODO: Recreate DB, doesn't support String ID or Identity context yet
|
||||||
if (!db.Database.Exists())
|
db.Database.EnsureCreated();
|
||||||
{
|
|
||||||
db.Database.Create();
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: CreateAsync DB?
|
// TODO: CreateAsync DB?
|
||||||
return db;
|
return db;
|
||||||
|
@ -108,10 +105,7 @@ namespace Microsoft.AspNet.Identity.Entity.Test
|
||||||
var db = new ApplicationDbContext(serviceProvider);
|
var db = new ApplicationDbContext(serviceProvider);
|
||||||
|
|
||||||
// TODO: Recreate DB, doesn't support String ID or Identity context yet
|
// TODO: Recreate DB, doesn't support String ID or Identity context yet
|
||||||
if (!db.Database.Exists())
|
db.Database.EnsureCreated();
|
||||||
{
|
|
||||||
db.Database.Create();
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: CreateAsync DB?
|
// TODO: CreateAsync DB?
|
||||||
return db;
|
return db;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче