say NO to Database.EnsureCreated()
This commit is contained in:
parent
4423dc360f
commit
147fb683f7
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ public class ApplicationDbContext : SurveyDbContext
|
||||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
||||||
: base(options)
|
: base(options)
|
||||||
{
|
{
|
||||||
Database.EnsureCreated();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue