FsContext autoupdate check

This commit is contained in:
Andre Beging
2022-05-30 14:58:14 +02:00
parent fd2d44e3aa
commit 584af54104
2 changed files with 13 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ namespace FoodsharingSiegen.Server.Data
/// <param name="options">The options (ab)</param>
public FsContext(DbContextOptions<FsContext> options) : base(options)
{
Database.EnsureCreated();
Database.Migrate();
}
#endregion
@@ -57,11 +57,6 @@ namespace FoodsharingSiegen.Server.Data
return ChangeTracker.Entries().Any(e => e.State is EntityState.Added or EntityState.Modified or EntityState.Deleted);
}
public class AndresTestException : Exception
{
}
#endregion
}
}