Code Cleanup und Passwort ändern im Profil

This commit is contained in:
Andre Beging
2022-05-23 18:07:05 +02:00
parent 602799e27c
commit 45325e339c
4 changed files with 81 additions and 75 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.EnsureCreated();
}
#endregion
@@ -57,6 +57,11 @@ 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
}
}