Completed all TODO tasks, what's left is to go over the code and do some cleanup regarding the album API functonality. #22, #25
This commit is contained in:
@@ -22,7 +22,8 @@ namespace Icarus.Models.Context
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Song>()
|
||||
.HasOne(s => s.AlbumObject)
|
||||
.ToTable("Song")
|
||||
.HasOne(s => s.Album)
|
||||
.WithMany(a => a.Songs)
|
||||
.HasForeignKey(s => s.AlbumId)
|
||||
.HasConstraintName("ForeignKey_Song_Album");
|
||||
|
||||
Reference in New Issue
Block a user