phase 1
This commit is contained in:
25
ModVersionChecker/repository/litedb/LiteDb.cs
Normal file
25
ModVersionChecker/repository/litedb/LiteDb.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user