Remove caching; add previous/next puzzle dates to puzzles

This commit is contained in:
2024-06-29 17:08:34 +02:00
parent e260012e20
commit e54f501f9a
8 changed files with 143 additions and 55 deletions

View File

@@ -11,6 +11,11 @@ namespace ConnectionsAPI.Database
{
modelBuilder.Entity<Puzzle>()
.HasIndex(x => x.PrintDate).IsUnique();
modelBuilder.Entity<Puzzle>()
.Ignore(x => x.NextPrintDate);
modelBuilder.Entity<Puzzle>()
.Ignore(x => x.PrevPrintDate);
base.OnModelCreating(modelBuilder);
}