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
+11
View File
@@ -1,8 +1,19 @@
using Microsoft.EntityFrameworkCore;
using MudBlazor.Services;
using Somnia.GuestLog.Components;
using Somnia.GuestLog.Infrastructure;
var builder = WebApplication.CreateBuilder(args);
var connectionStringGuestLog = builder.Configuration.GetConnectionString("DbSomniaGuestLog")
?? throw new InvalidOperationException("Connection string 'DbSomniaGuestLog' not found.");
builder.Services.AddDbContextFactory<GuestLogContext>(options =>
{
options.UseNpgsql(connectionStringGuestLog);
});
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
// Add MudBlazor services
builder.Services.AddMudServices();