Fix typo in comment and remove useless ones

This commit is contained in:
Fernando Fernández
2021-09-07 17:53:35 +02:00
parent 154b7d8505
commit e5980f8686
9 changed files with 1 additions and 23 deletions

View File

@@ -12,15 +12,11 @@ namespace Jellyfin.Server.Implementations.ModelConfiguration
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<DisplayPreferences> builder)
{
// Delete behaviour
builder
.HasMany(d => d.HomeSections)
.WithOne()
.OnDelete(DeleteBehavior.Cascade);
// Indexes
builder
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client })
.IsUnique();