Fix perf with cache

This commit is contained in:
2025-10-10 03:42:57 +07:00
parent bdda24cb60
commit b6b11be33a
13 changed files with 1646 additions and 32 deletions

View File

@@ -86,7 +86,7 @@ public class ManagingDbContext : DbContext
// Configure relationship with User
entity.HasOne(e => e.User)
.WithMany()
.WithMany(u => u.Accounts)
.HasForeignKey(e => e.UserId)
.OnDelete(DeleteBehavior.SetNull);
});