Started working on editor dialog
All checks were successful
HopFrame CI / build (push) Successful in 46s
HopFrame CI / test (push) Successful in 57s

This commit is contained in:
2026-02-27 17:52:27 +01:00
parent e9e9fbf5e9
commit 0a00146a35
13 changed files with 402 additions and 28 deletions

View File

@@ -9,6 +9,8 @@ public class DatabaseContext(DbContextOptions<DatabaseContext> options) : DbCont
public DbSet<Post> Posts { get; set; }
public DbSet<Typer> Typers { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder) {
base.OnModelCreating(modelBuilder);
@@ -22,5 +24,8 @@ public class DatabaseContext(DbContextOptions<DatabaseContext> options) : DbCont
.HasMany(u => u.Posts)
.WithOne(p => p.Sender)
.OnDelete(DeleteBehavior.Cascade);
modelBuilder.Entity<Typer>()
.HasKey(t => t.Id);
}
}