using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace MusicStore.Models { public class ApplicationUser : IdentityUser { } public class MusicStoreContext : IdentityDbContext { public MusicStoreContext(DbContextOptions options) : base(options) { } public DbSet Albums { get; set; } public DbSet Artists { get; set; } public DbSet Orders { get; set; } public DbSet Genres { get; set; } public DbSet CartItems { get; set; } public DbSet OrderDetails { get; set; } protected override void OnModelCreating(ModelBuilder builder) { // Configure pluralization builder.Entity().ToTable("Albums"); builder.Entity().ToTable("Artists"); builder.Entity().ToTable("Orders"); builder.Entity().ToTable("Genres"); builder.Entity().ToTable("CartItems"); builder.Entity().ToTable("OrderDetails"); base.OnModelCreating(builder); } } }