aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Interfaces/IHasConcurrencyToken.cs
blob: 2c4091493e14f73112a19c41b424f72e86ca1971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Jellyfin.Data.Interfaces
{
    /// <summary>
    /// An interface abstracting an entity that has a concurrency token.
    /// </summary>
    public interface IHasConcurrencyToken
    {
        /// <summary>
        /// Gets the version of this row. Acts as a concurrency token.
        /// </summary>
        uint RowVersion { get; }

        /// <summary>
        /// Called when saving changes to this entity.
        /// </summary>
        void OnSavingChanges();
    }
}