mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
23 lines
489 B
C#
23 lines
489 B
C#
using CarCareTracker.Helper;
|
|
using LiteDB;
|
|
|
|
namespace CarCareTracker.External.Implementations
|
|
{
|
|
public interface ILiteDBInjection
|
|
{
|
|
LiteDatabase GetLiteDB();
|
|
}
|
|
public class LiteDBInjection: ILiteDBInjection
|
|
{
|
|
public LiteDatabase db { get; set; }
|
|
public LiteDBInjection()
|
|
{
|
|
db = new LiteDatabase(StaticHelper.DbName);
|
|
}
|
|
public LiteDatabase GetLiteDB()
|
|
{
|
|
return db;
|
|
}
|
|
}
|
|
}
|