mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
20 lines
461 B
C#
20 lines
461 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Enums;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.Entities
|
|
{
|
|
public class ServerSetting : IHasConcurrencyToken
|
|
{
|
|
[Key]
|
|
public ServerSettingKey Key { get; set; }
|
|
public string Value { get; set; }
|
|
|
|
[ConcurrencyCheck]
|
|
public uint RowVersion { get; set; }
|
|
public void OnSavingChanges()
|
|
{
|
|
RowVersion++;
|
|
}
|
|
}
|
|
} |