Remove Database EnsureCreated
This commit is contained in:
parent
cb0aa63a43
commit
af80d4493e
|
|
@ -16,7 +16,6 @@ namespace ChatSample.Data
|
||||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
||||||
: base(options)
|
: base(options)
|
||||||
{
|
{
|
||||||
Database.EnsureCreated();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder builder)
|
protected override void OnModelCreating(ModelBuilder builder)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue