GuestLog - Added GuestDocument db table.

This commit is contained in:
2026-06-18 21:23:38 +02:00
parent 26f77bb8fd
commit 86fadf97b4
13 changed files with 502 additions and 2 deletions
@@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore;
using Somnia.GuestLog.Infrastructure.EntityConfigs;
using Somnia.GuestLog.Models;
namespace Somnia.GuestLog.Infrastructure;
public partial class GuestLogContext : DbContext
{
public GuestLogContext(DbContextOptions<GuestLogContext> options)
: base(options)
{ }
public DbSet<GuestDocument> GuestDocuments { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfiguration<GuestDocument>(new GuestDocumentEntityConfig());
OnModelCreatingPartial(modelBuilder);
base.OnModelCreating(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}