Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit)
This commit is contained in:
parent
8220709b4c
commit
18385a4f80
20 changed files with 2854 additions and 6 deletions
20
API/Entities/ServerSetting.cs
Normal file
20
API/Entities/ServerSetting.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Entities.Interfaces;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Entities
|
||||
{
|
||||
public class ServerSetting : IHasConcurrencyToken
|
||||
{
|
||||
[Key]
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; set; }
|
||||
public void OnSavingChanges()
|
||||
{
|
||||
RowVersion++;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue