添加项目文件。

This commit is contained in:
Zel
2025-01-22 23:31:03 +08:00
parent 1b8ba6771f
commit 2ae76476fb
894 changed files with 774558 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using NTDLS.SqliteDapperWrapper;
namespace TightWiki.Repository
{
/// <summary>
/// Stores instances of ManagedDataStorageFactories that are used to store various parts of the data for the site.
/// </summary>
public static class ManagedDataStorage
{
private static (string Name, ManagedDataStorageFactory Factory)[]? _collection = null;
public static (string Name, ManagedDataStorageFactory Factory)[] Collection
{
get
{
_collection ??=
[
("DeletedPageRevisions", DeletedPageRevisions),
("DeletedPages", DeletedPages),
("Pages", Pages),
("Statistics", Statistics),
("Emoji", Emoji),
("Exceptions", Exceptions),
("Users", Users),
("Config", Config)
];
return _collection;
}
}
public static ManagedDataStorageFactory DeletedPageRevisions { get; private set; } = new();
public static ManagedDataStorageFactory DeletedPages { get; private set; } = new();
public static ManagedDataStorageFactory Pages { get; private set; } = new();
public static ManagedDataStorageFactory Statistics { get; private set; } = new();
public static ManagedDataStorageFactory Emoji { get; private set; } = new();
public static ManagedDataStorageFactory Exceptions { get; private set; } = new();
public static ManagedDataStorageFactory Users { get; private set; } = new();
public static ManagedDataStorageFactory Config { get; private set; } = new();
}
}