using Microsoft.EntityFrameworkCore; using LCU.Library.Internal.ArchiverApiModel.Entities; namespace LCU.Library.Internal.ArchiverApiLib.Persistence { public class AppDbContext : DbContext { public DbSet ApplicationMappings { get; set; } public DbSet ParameterMappings { get; set; } public DbSet RegexMappings { get; set; } public AppDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity().ToTable("ApplicationMapping"); builder.Entity().ToTable("ParameterMapping"); builder.Entity().ToTable("RegexMapping"); } } }