фиксы
This commit is contained in:
parent
414f66dbd0
commit
dba01cdcc6
@ -104,13 +104,7 @@ public class ApplicationContext : IdentityDbContext<User>
|
||||
public ApplicationContext(DbContextOptions<ApplicationContext> options)
|
||||
: base(options)
|
||||
{
|
||||
try{
|
||||
Database.Migrate();
|
||||
}
|
||||
catch
|
||||
{
|
||||
Database.EnsureCreated();
|
||||
}
|
||||
Database.EnsureCreated();
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
|
Loading…
x
Reference in New Issue
Block a user