using LiteDB; using skydiveLogs_api.Data.Interface; namespace skydiveLogs_api.Data { public class LiteDbProvider : IDataProvider { public LiteDbProvider(string connectionString) { _db = new LiteDatabase(connectionString); } public LiteCollection GetCollection() { return _db.GetCollection(); } public void Close() { _db.Dispose(); } private readonly LiteDatabase _db; } }