Files
Jose Conde 5e16f781b4 phase 1
2025-09-29 16:02:00 +02:00

26 lines
881 B
C#

using LiteDB;
namespace ModVersionChecker.managers.litedb
{
public abstract class LiteDb
{
public static string DB_PATH = "ModVersionChecker.db";
public static string APPS_COLLECTION = "apps";
public static string CHECKER_TYPES_DEF_COLLECTION = "checker_types_def";
public static string SOURCES_DEF_COLLECTION = "sources_def";
public static string CONFIG_COLLECTION = "config";
public static string FLIGHT_SIMS_COLLECTION = "flight_sims";
public static string TYPES_COLLECTION = "types";
public static string LOCAL_APPS_COLLECTION = "local_apps";
protected LiteDatabase _db = LiteDbSingleton.Instance;
protected abstract string collection { get; }
protected ILiteCollection<T> GetCollection<T>()
{
return _db.GetCollection<T>(collection);
}
}
}