#74: Some cleanup

This commit is contained in:
kdeng00
2024-06-19 15:38:32 -04:00
parent c6257da717
commit ef96003f46
21 changed files with 36 additions and 132 deletions
+6 -10
View File
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Icarus.Models;
@@ -27,19 +23,19 @@ public class SongContext : DbContext
modelBuilder.Entity<Song>()
.Property(s => s.Year)
.IsRequired(false);
.IsRequired(false);
modelBuilder.Entity<Song>()
.Property(s => s.GenreID)
.IsRequired(false);
.IsRequired(false);
modelBuilder.Entity<Song>()
.Property(s => s.ArtistID)
.IsRequired(false);
.IsRequired(false);
modelBuilder.Entity<Song>()
.Property(s => s.AlbumID)
.IsRequired(false);
.IsRequired(false);
modelBuilder.Entity<Song>()
.Property(s => s.CoverArtID)
.IsRequired(false);
.Property(s => s.CoverArtID)
.IsRequired(false);
}