Update ubout DataProvider

This commit is contained in:
Sébastien André
2019-11-11 01:18:23 +01:00
parent 2e6ec6ec85
commit 1f0be68e58
4 changed files with 33 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
using LiteDB;
using skydiveLogs_api.Data.Interface;
using skydiveLogs_api.Model;
namespace skydiveLogs_api.Data
{
@@ -23,5 +23,15 @@ namespace skydiveLogs_api.Data
}
private readonly LiteDatabase _db;
public LiteCollection<Aircraft> CollOfAircraft => _db.GetCollection<Aircraft>();
public LiteCollection<DropZone> CollOfDropZone => _db.GetCollection<DropZone>();
public LiteCollection<Gear> CollOfGear => _db.GetCollection<Gear>();
public LiteCollection<JumpType> CollOfJumpType => _db.GetCollection<JumpType>();
public LiteCollection<Jump> CollOfJump => _db.GetCollection<Jump>();
}
}