mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 12:14:44 -04:00
20 lines
472 B
C#
20 lines
472 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Interfaces;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
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++;
|
|
}
|
|
}
|
|
} |