Update ubout DataProvider
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user