Add a link betweend a gear to the connected user.

This commit is contained in:
Sébastien André
2021-02-26 15:07:31 +01:00
parent 426dcec7d9
commit 92d600dc73
8 changed files with 25 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ namespace skydiveLogs_api.Data
public LiteDbProvider(string connectionString)
{
_db = new LiteDatabase(connectionString);
BsonMapper.Global.Entity<Jump>().DbRef(x => x.JumpType, "JumpType");
BsonMapper.Global.Entity<Jump>().DbRef(x => x.Aircraft, "Aircraft");
BsonMapper.Global.Entity<Jump>().DbRef(x => x.DropZone, "DropZone");
@@ -17,6 +18,8 @@ namespace skydiveLogs_api.Data
BsonMapper.Global.Entity<Jump>().DbRef(x => x.User, "User");
BsonMapper.Global.Entity<UserImage>().DbRef(x => x.User, "User");
BsonMapper.Global.Entity<Gear>().DbRef(x => x.User, "User");
}
public ILiteCollection<T> GetCollection<T>()