mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-11 20:42:53 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
19 lines
440 B
C#
19 lines
440 B
C#
namespace Kavita.Models.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();
|
|
|
|
}
|