using Application.Abstractions.Data; using Domain.Entities.Common; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Persistence { public sealed class AppDbContext : DbContext, IAppDbContext { public AppDbContext(DbContextOptions options) : base(options) { } public DbSet Config { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { // Apply all configurations from the current assembly modelBuilder.ApplyConfigurationsFromAssembly(typeof(AppDbContext).Assembly); } } }