using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Data.Entity.Infrastructure; namespace MvcMusicStore.Models { public class MusicStoreEntities : DbContext { public DbSet Genres { get; set; } public DbSet Albums { get; set; } public DbSet Artists { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("Genres"); modelBuilder.Entity().ToTable("Albums"); modelBuilder.Entity().ToTable("Artists"); base.OnModelCreating(modelBuilder); } } }