using Microsoft.EntityFrameworkCore; using Somnia.GuestLog.Infrastructure.EntityConfigs; using Somnia.GuestLog.Models.Entities; namespace Somnia.GuestLog.Infrastructure; public partial class GuestLogContext : DbContext { public GuestLogContext(DbContextOptions options) : base(options) { } public DbSet GuestDocuments { get; set; } public DbSet StayEntries { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new GuestDocumentEntityConfig()); modelBuilder.ApplyConfiguration(new StayEntryEntityConfig()); OnModelCreatingPartial(modelBuilder); base.OnModelCreating(modelBuilder); } partial void OnModelCreatingPartial(ModelBuilder modelBuilder); }