The SongCount field is not mapped during migrations. Working on changes to the StoreContext classes. These changes will calculate the song count for the album, artist, genre, and year records when querying data. The other change is to check to see if the record exist in the first place before querying using a left join. #47
This commit is contained in:
1 parent
dd89b97997
commit
e1627b04b9
9 files changed
+59
-29
No files matched your search
@@ -634,8 +634,11 @@ namespace Icarus.Controllers.Managers
|
||||
{
|
||||
_logger.Info("Starting process to save the song to the database");
|
||||
|
||||
MetadataRetriever.PrintMetadata(song);
|
||||
SaveAlbumToDatabase(ref song, albumStore);
|
||||
MetadataRetriever.PrintMetadata(song);
|
||||
SaveArtistToDatabase(ref song, artistStore);
|
||||
MetadataRetriever.PrintMetadata(song);
|
||||
|
||||
_logger.Info($"Song;\nTitle {song.Title}\nAlbum {song.AlbumTitle}\nAlbum Id {song.AlbumId}\nArtist {song.ArtistId}");
|
||||
|
||||
|
||||
Reference in new issue
Block a user