Added Genre and Year models, Genre and Year Context, Genre and Year Stores, Genre and Year skeleton APIControllers #41 and #42

This commit is contained in:
amazing-username
2019-05-13 21:19:15 -04:00
parent d75d2924a7
commit cd2da929eb
10 changed files with 276 additions and 2 deletions
+2
View File
@@ -98,6 +98,7 @@ namespace Icarus
var connString = Configuration.GetConnectionString("DefaultConnection");
// TODO: Add the Genre and Year stores #41 and #42.
services.Add(new ServiceDescriptor(typeof(MusicStoreContext),
new MusicStoreContext(Configuration
.GetConnectionString("DefaultConnection"))));
@@ -118,6 +119,7 @@ namespace Icarus
services.AddDbContext<AlbumContext>(options => options.UseMySQL(connString));
services.AddDbContext<ArtistContext>(options => options.UseMySQL(connString));
services.AddDbContext<UserContext>(options => options.UseMySQL(connString));
// TODO: Add the Genre and Year contexts #41 and #42
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.