1 min readFeb 28, 2020
Hi!
You need a reference to Data layer in your API layer to be able to initialize your DbContext in your Startup.cs
file. Note that there we configure our MyMusicDbContext
in
services.AddDbContext<MyMusicDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString(“Default”), x => x.MigrationsAssembly(“MyMusic.Data”)));