using System.Reflection; using Hutopy.Application.Common.Interfaces; using Hutopy.Domain.Entities; using Hutopy.Infrastructure.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace Hutopy.Infrastructure.Data { public class ApplicationDbContext : IdentityDbContext, IApplicationDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } public DbSet FutureCreators => Set(); public DbSet UserTransactions => Set(); protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); // Apply configurations builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly()); } } }