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