IHasConcurrencyToken.cs 485 B

123456789101112131415161718
  1. namespace Jellyfin.Data.Interfaces
  2. {
  3. /// <summary>
  4. /// An interface abstracting an entity that has a concurrency token.
  5. /// </summary>
  6. public interface IHasConcurrencyToken
  7. {
  8. /// <summary>
  9. /// Gets the version of this row. Acts as a concurrency token.
  10. /// </summary>
  11. uint RowVersion { get; }
  12. /// <summary>
  13. /// Called when saving changes to this entity.
  14. /// </summary>
  15. void OnSavingChanges();
  16. }
  17. }