using System.Reflection; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace AutobusApi.Infrastructure.Identity; public class ApplicationIdentityDbContext : IdentityDbContext, int> { public ApplicationIdentityDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.HasDefaultSchema("identity"); builder.ApplyConfigurationsFromAssembly( Assembly.GetExecutingAssembly(), t => t.Namespace == "AutobusApi.Infrastructure.Identity.Configurations" ); } }