Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

430 B
Raw Blame
namespace API.Entities.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();

}