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:
Joseph Milazzo 2021-01-23 09:01:10 -06:00
parent 8220709b4c
commit 18385a4f80
20 changed files with 2854 additions and 6 deletions

View 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++;
}
}
}