added new fields to the playlist entry, migrations and started with the api controller to manage the list
This commit is contained in:
@@ -17,7 +17,8 @@ namespace Tv7Playlist.Data
|
||||
|
||||
var entityTypeBuilder = modelBuilder.Entity<PlaylistEntry>();
|
||||
entityTypeBuilder.HasKey(e => e.Id);
|
||||
entityTypeBuilder.HasAlternateKey(e => e.TrackNumber);
|
||||
entityTypeBuilder.HasIndex(e => e.TrackNumber).IsUnique();
|
||||
entityTypeBuilder.HasIndex(e => e.Name);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user