26 lines
881 B
C#
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);
|
|
}
|
|
}
|
|
}
|