diff options
| author | Bill Thornton <thornbill@users.noreply.github.com> | 2021-05-04 23:59:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-04 23:59:15 -0400 |
| commit | 77f0f89e45ca04d5e174e6c91a760690cbd4159f (patch) | |
| tree | c11e96f943a3b286f0648cbd0930b1cf86fe142d /Jellyfin.Data/Entities/Libraries/Collection.cs | |
| parent | 9d02ebb577c66c7a64b92040f28d1e76b7b947f0 (diff) | |
| parent | 7364155579c52e5019cdcb71edc03546babe3fb3 (diff) | |
Merge pull request #5623 from barronpm/ef-cleanup2
EF Core Cleanup 2
Diffstat (limited to 'Jellyfin.Data/Entities/Libraries/Collection.cs')
| -rw-r--r-- | Jellyfin.Data/Entities/Libraries/Collection.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Jellyfin.Data/Entities/Libraries/Collection.cs b/Jellyfin.Data/Entities/Libraries/Collection.cs index 4253b7eccf..7de6019692 100644 --- a/Jellyfin.Data/Entities/Libraries/Collection.cs +++ b/Jellyfin.Data/Entities/Libraries/Collection.cs @@ -1,5 +1,4 @@ #pragma warning disable CA1711 // Identifiers should not have incorrect suffix -#pragma warning disable CA2227 using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -22,13 +21,13 @@ namespace Jellyfin.Data.Entities.Libraries } /// <summary> - /// Gets or sets the id. + /// Gets the id. /// </summary> /// <remarks> /// Identity, Indexed, Required. /// </remarks> [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; protected set; } + public int Id { get; private set; } /// <summary> /// Gets or sets the name. @@ -42,12 +41,12 @@ namespace Jellyfin.Data.Entities.Libraries /// <inheritdoc /> [ConcurrencyCheck] - public uint RowVersion { get; set; } + public uint RowVersion { get; private set; } /// <summary> - /// Gets or sets a collection containing this collection's items. + /// Gets a collection containing this collection's items. /// </summary> - public virtual ICollection<CollectionItem> Items { get; protected set; } + public virtual ICollection<CollectionItem> Items { get; private set; } /// <inheritdoc /> public void OnSavingChanges() |
