aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Libraries/Collection.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/Libraries/Collection.cs')
-rw-r--r--Jellyfin.Data/Entities/Libraries/Collection.cs57
1 files changed, 0 insertions, 57 deletions
diff --git a/Jellyfin.Data/Entities/Libraries/Collection.cs b/Jellyfin.Data/Entities/Libraries/Collection.cs
deleted file mode 100644
index 7de601969..000000000
--- a/Jellyfin.Data/Entities/Libraries/Collection.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-#pragma warning disable CA1711 // Identifiers should not have incorrect suffix
-
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using Jellyfin.Data.Interfaces;
-
-namespace Jellyfin.Data.Entities.Libraries
-{
- /// <summary>
- /// An entity representing a collection.
- /// </summary>
- public class Collection : IHasConcurrencyToken
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="Collection"/> class.
- /// </summary>
- public Collection()
- {
- Items = new HashSet<CollectionItem>();
- }
-
- /// <summary>
- /// Gets the id.
- /// </summary>
- /// <remarks>
- /// Identity, Indexed, Required.
- /// </remarks>
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public int Id { get; private set; }
-
- /// <summary>
- /// Gets or sets the name.
- /// </summary>
- /// <remarks>
- /// Max length = 1024.
- /// </remarks>
- [MaxLength(1024)]
- [StringLength(1024)]
- public string? Name { get; set; }
-
- /// <inheritdoc />
- [ConcurrencyCheck]
- public uint RowVersion { get; private set; }
-
- /// <summary>
- /// Gets a collection containing this collection's items.
- /// </summary>
- public virtual ICollection<CollectionItem> Items { get; private set; }
-
- /// <inheritdoc />
- public void OnSavingChanges()
- {
- RowVersion++;
- }
- }
-}