using Microsoft.EntityFrameworkCore; public class GatewayDbContext : DbContext { public GatewayDbContext(DbContextOptions opts) : base(opts) { } public DbSet Patients => Set(); public DbSet Encounters => Set(); public DbSet AlertThresholds => Set(); public DbSet Observations => Set(); public DbSet ClinicalAlerts => Set(); public DbSet BufferedSyncItems => Set(); public DbSet SyncOutbox => Set(); public DbSet SyncState => Set(); protected override void OnModelCreating(ModelBuilder modelBuilder) => modelBuilder.ApplyConfigurationsFromAssembly(typeof(GatewayDbContext).Assembly); }