using System.Security.Principal; using Microsoft.EntityFrameworkCore; namespace Server.Data; public sealed class GameDbContext : DbContext { public GameDbContext(DbContextOptions options) : base(options) { } public DbSet Accounts => Set(); public DbSet Sessions => Set(); public DbSet Characters => Set(); public DbSet Zones => Set(); public DbSet ItemTemplates => Set(); public DbSet Inventory => Set(); public DbSet Equipment => Set(); protected override void OnModelCreating(ModelBuilder b) { b.ApplyConfigurationsFromAssembly(typeof(GameDbContext).Assembly); } }