#95: Updated Id of the CoverArt model

This commit is contained in:
kdeng00
2024-06-19 16:14:06 -04:00
parent 562bc87822
commit 5c913869b4
7 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ public class CoverArtContext : DbContext
public CoverArt RetrieveRecord(CoverArt cover)
{
return CoverArtImages.FirstOrDefault(cov => cov.CoverArtID == cover.CoverArtID);
return CoverArtImages.FirstOrDefault(cov => cov.Id == cover.Id);
}
public bool DoesRecordExist(CoverArt cover)
{
return CoverArtImages.FirstOrDefault(cov => cov.CoverArtID == cover.CoverArtID) != null ? true : false;
return CoverArtImages.FirstOrDefault(cov => cov.Id == cover.Id) != null ? true : false;
}
}
+1 -1
View File
@@ -34,7 +34,7 @@ public class SongContext : DbContext
.Property(s => s.AlbumID)
.IsRequired(false);
modelBuilder.Entity<Song>()
.Property(s => s.CoverArtID)
.Property(s => s.CoverArtId)
.IsRequired(false);
}